Password Strength Field

Password Strength Field

A secure field with a show/hide eye toggle, a segmented strength meter that grows and recolors as you type, and a label that morphs from Weak to Strong. Each rule in the checklist pops to a checkmark with a haptic the moment it is met.

Luiz Mello
  • field
  • meter
  • auth

snippet.swift280 lines

7 files • Scroll to see all →
//// A password field that coaches while you type.//// - A show/hide eye swaps between secure and plain text, keeping focus.// - A segmented meter grows one segment per satisfied rule and recolors//   the whole bar as strength climbs (red, orange, yellow, green).// - The strength label morphs Weak -> Fair -> Good -> Strong.// - Each rule in the checklist pops to a filled checkmark the moment it's met,//   with a selection haptic, and a success haptic when every rule passes.
Viewing: PasswordStrengthField.swift•1 of 7