GoogleSignInSwift Framework Reference

  • GoogleSignInButtonViewModel is a view model for the SwiftUI sign-in button that publishes changes for the button scheme, style, and state.

  • It has published properties for scheme, style, and state, allowing changes to these aspects of the button to be observed.

  • An initializer init(scheme:style:state:) is provided to create instances of the view model, with default values for scheme, style, and state.

GoogleSignInButtonViewModel

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

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