Skip to content

jrpinteno/TokenView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TokenView

View container based on UICollectionView used to display tokens. It also allows adding new ones through UITextField entry and possibility to attach a picker selection view.

Installation

CocoaPods

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

pod 'TokenView'

Known issues

  • Picker doesn't disappear when token is added through text change (delimiters)

TODO

  • Toggleable prompt

  • Deletable tokens

  • Customizable appearance per token

  • Custom token protocol to allow custom UICollectionViewCell subclasses for appearance and behaviour

  • Optional validation for token generation

  • Long tap detection (or second tap after token is selected) to handle secondary action

  • Dropdown selector from external datasource to add token

  • Support for right-to-left languages

  • Support self-sizing cells through autolayout

  • Custom delimiters detection on text entry for token generation

  • Toggle showing picker elements which have been already added

  • Show preloaded tokens

Author

Xavi R. Pinteño, xavi@jrpinteno.me

License

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

About

TokenView with picker for iOS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published