GoogleSignInSwift Framework Reference

  • The GoogleSignInButtonViewModel is a globally available class.

  • This class serves as a view model for the SwiftUI sign-in button.

  • It publishes changes related to the button's scheme, style, and state.

  • The GoogleSignInButtonViewModel is an ObservableObject and is available on iOS 13.0+ and macOS 10.15+.

Classes

The following classes are available globally.

  • A view model for the SwiftUI sign-in button publishing changes for the button scheme, style, and state.

    Declaration

    Swift

    @available(iOS 13.0, macOS 10.15, *)
    public class GoogleSignInButtonViewModel : ObservableObject