Page Summary
-
The
GoogleSignInButtonViewModelis 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
GoogleSignInButtonViewModelis anObservableObjectand 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