Docs
Auth and OnboardingPro

Reset PasswordNew

Account recovery in one block: request a code by email, verify it, choose a new password with rules that tick off, then sign in.

$npx swiftpieces add ResetPasswordBlock

Needs a SwiftPieces Pro license: npx swiftpieces login first.

Open in the Pro library View pricing Live preview in every Pro style, and its source with SwiftPieces Pro.
ProPattern · Auth and OnboardingiOS 17+Themed by Pro's design system
Type
ResetPasswordBlock
Inside
Step track, Six-digit code, Strong password rules, Per-step states
Install, with a Pro license
npx swiftpieces add ResetPasswordBlock
Depends on
Pro's Design System, which installs with it

Three steps on one card under a Step 1 of 3 track: the email and Send code, a six-digit code with a Resend countdown and a wrong-code error, and a new password with strong-password AutoFill, show and hide, rules that tick off and a confirm field. Each step runs your closure through working, done and failed, Back returns a step, and a done state ends on Sign in.

Its SwiftUI source comes with SwiftPieces Pro: Reset Password in the Pro library.

All patterns →
SwiftPiecesPro

Build the whole app with one library.

Production-ready screens, whole flows, complete app templates, a Build Kit your agent follows and Pro remixing.

54 screens · 46 patterns · 48 flows · 12 templates · 31 Build Kit skills

Explore Pro