Modern Authentication UI — A reusable SwiftUI authentication template

Hi everyone,

I recently built and released Modern Authentication UI, a reusable authentication UI template built entirely with SwiftUI.

I created it to have a clean authentication foundation that can be reused across iOS projects without rebuilding the same UI and validation logic each time.

It includes Sign In, Create Account and Forgot Password flows, along with form validation, password strength feedback, loading/success/error states, Light & Dark Mode support, keyboard and focus management, and reusable UI components.

I also separated the main configuration into AuthTheme and AuthConfig, while validation is handled through AuthValidator. Authentication itself is backend-independent: Sign In, Sign Up and password reset are exposed through async/throwing callbacks, so the UI can be connected to Firebase, Supabase, a REST API or a custom backend without being tied to any of them.

The project has no third-party dependencies and supports iOS 17.6+.

This is my first SwiftUI product, so I’d be interested in feedback from other Swift developers, particularly around the architecture, customization approach and overall UI.

More information and screenshots are available here:

Thanks!