SwiftUI Sign In View
A SwiftUI View that handles user interaction when logging into an account using an email and password.
Usage
(interactor: SignInInteractor(
SignInView: { user in
didAuthenticate// success, login to app
},
: {
didSelectCreateAccount// navigate to account creation
},
: {
didSelectForgotPassword// navigate to password reset
})
)
Features
- Client side email and password validation, with comprehensive error messaging for users.
- Secure password text entry.
- Handles
ScrollView
interactions with proper keyboard management. - Supports light and dark device color schemes by default.
- Supports font scaling via Dynamic Type.
- Supports offline usage in SwiftUI Previews for easy debugging and testing.
Notes
- Used as a subview in AuthenticationContainer, which handles end-to-end navigation for SignInView, CreateAccountView and ResetPasswordView.