Skip to content

ersentekin/ETWinkerField

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##

[![CI Status](http://img.shields.io/travis/Ersen Tekin/ETWinkerField.svg?style=flat)](https://travis-ci.org/Ersen Tekin/ETWinkerField) Version License Platform

Usage

####Via Storyboard You can put a UITextField on storyboard and set it's class as ETWinkerField. You can access through Identity Inspector Here's a screenshot.

####Additional Customizations

// wink images
UIImage* iconImageShown = [UIImage imageNamed:@"wink.png"];
UIImage* iconImageHidden = [UIImage imageNamed:@"wink-hidden.png"];
    
// ATTENTION!
// insert hidden image FIRST
NSMutableArray* arrayImages = [[NSMutableArray alloc] initWithObjects:iconImageHidden, iconImageShown, nil];
self.passwordTextField.arrayStatusImages = [arrayImages mutableCopy];

Installation

ETWinkerField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ETWinkerField"

Then run pod install

TODOs

  • Add test coverage
  • Fix irrelevant spacing after hide-to-show switch.

Author

Ersen Tekin, ersen.tekin@gmail.com

License

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

About

Password visibility switch button for UITextField

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published