Documentation

SwiftUI Email Verification View

A SwiftUI View typically used after an account has been created, when waiting for a verification message sent to the user’s email to be acknowledged. Handles long-polling logic to continually check an API resource for email verification.

EmailVerificationView with a light color scheme. A SwiftUI Starter Kit Component.
EmailVerificationView with a light color scheme.
EmailVerificationView with a dark color scheme. A SwiftUI Starter Kit Component.
EmailVerificationView with a dark color scheme.

Usage

EmailVerificationView(
    interactor: EmailVerificationInteractor(
        user: user,
        didVerifyUserEmail: { user in
        }
    )
)

Features

  • A loading spinner is integrated to appear when triggering an API request to send a verification email.
  • Interaction bindings for users to resend email.
  • 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.