Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.86 KB

README.md

File metadata and controls

60 lines (40 loc) · 1.86 KB

Version License Platform

ShowPasswordTextField

ShowPasswordTextField provides way to show or hide password for secure textfield.

DemoGif

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 5+
  • IOS 13+

Installation

ShowPasswordTextField is available through CocoaPods. To install it, simply add the following line to your Podfile and run pod install:

pod 'ShowPasswordTextField'

Then you can import it when you need

import ShowPasswordTextField

Usage

Interface Builder

  1. In your storyboard, Drag and drop a UITextField to a ViewController.
  2. In Identity Inspector > Custom class, change the class to ShowPasswordTextField and the module to ShowPasswordTextField.

Screenshot

  1. Configure your properties in the Attribute Inspector.

Screenshot

Programmatically

let textField = ShowPasswordTextField(frame: CGRect(x: 0, y: 0, width: 240, height: 44))
textField.borderStyle = .bezel
textField.tintIconColor = .red
textField.sizeIcon = 32
view.addSubview(textField)

Author

k.angama, [email protected]

License

ShowPasswordTextField is available under the MIT license. See the LICENSE file for more info.