How to Build Better Password Entry in SwiftUI

Add a show/hide password button to your password text field

David Piper
Better Programming
Published in
5 min readMar 1, 2020

--

Photo by Shane Avery on Unsplash

Many big apps — like YouTube, Twitter, and Amazon — allow their users to switch between a secured text field and a normal text field whenever a password needs to be entered. This is a good user experience because it’ll be very frustrating for your users to need multiple tries to log in…

--

--