Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.1 KB

File metadata and controls

22 lines (14 loc) · 1.1 KB

TNSwipeToClearTextField

UITextField that will clear its contents on a left swipe!

Usage

It's rather simple to use TNSwipeToClearTextField.

Swipe left (<-) on the Text Field, editing or not, and the contents will be removed. If no changes have been made after a clear, a swipe right (->) and the text will be put back.

Notes To Reader

The auther is unable to provide any more information on usage of TNSwipeToClearTextField. Firstly, because he is spending most of his time thinking about a better name (See Naming.md), but secondly, and more importantly, his home development Mac is running Snow Leopard and is unable to use the lastest version of Xcode until he finds the time to upgrade to a broken OS X.

Todo

  • Enable the swipe right to bring back text that is clear with the Clear Button.
  • Provide example app, and screenshots.