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.
Pro pattern · recorded from Pro
The SwiftUI source comes with SwiftPieces Pro.
Every Pro pattern installs with one command once your license is signed in, and re-skins with Pro's design system.
Open it in the Pro library ↗Needs a SwiftPieces Pro license: npx swiftpieces login first.
- 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.