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.
-
Undocumented
Declaration
Swift
@Published public var scheme: GoogleSignInButtonColorScheme { get set }
-
Undocumented
Declaration
Swift
@Published public var style: GoogleSignInButtonStyle { get set }
-
Undocumented
Declaration
Swift
@Published public var state: GoogleSignInButtonState { get set }
-
Creates instances of the SwiftUI sign-in button.
Declaration
Swift
@available(iOS 13.0, macOS 10.15, *) public init( scheme: GoogleSignInButtonColorScheme = .light, style: GoogleSignInButtonStyle = .standard, state: GoogleSignInButtonState = .normal)
Parameters
scheme
An instance of
GoogleSignInButtonColorScheme
. Defaults to.light
.style
An instance of
GoogleSignInButtonStyle
. Defaults to.standard
.state
An instance of
GoogleSignInButtonState
. Defaults to.normal
.