HideShowPasswordTextField
An easy to use `UITextField` subclass that adds a visibility toggle and an optional validation checkmark
Install / Use
/learn @Guidebook/HideShowPasswordTextFieldREADME
HideShowPasswordTextField
An easy to use UITextField subclass that adds a visibility toggle and an optional validation checkmark
Created by @lookatpete (product), @pklada (design), and @miketsprague (code)

Installation
Cocoapods
pod 'HideShowPasswordTextField', :git => 'https://github.com/Guidebook/HideShowPasswordTextField'
Manual
Just add the files in HideShowPasswordTextField/ to your project.
Usage
- Create a
UITextFieldin your xib, and change the class name toHideShowPasswordTextField. Or, create it programatically. - Set
secureTextEntrytotrue, if you want the password to hide by default. - [Recommended] Change the border style to None, and add a height constraint of 44 or larger. The assets in this project are optimized for 44px, although larger is fine too. Smaller sizes might have clipping issues on the icons.
- ~Implement
UITextFieldDelegateand forwardtextField shouldChangeCharactersInRangeandtextFieldDidEndEditingto your password text field (see the example). We have to do this to get the behavior to work right--apple's API doesn't play very nice switching betweensecureTextEntrystates.~- This step is no longer necessary.
- [Optional] Implement
HideShowPasswordTextFieldDelegateto show the validation checkbox. - Customize the textField to your liking (the tint too!)!
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
