SwiftUI Sign In View
A SwiftUI View that handles user interaction when logging into an account using an email and password.
Usage
SignInView(interactor: SignInInteractor(
didAuthenticate: { user in
// 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
ScrollViewinteractions 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.