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.
TokenView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TokenView'- Picker doesn't disappear when token is added through text change (delimiters)
-
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
Xavi R. Pinteño, xavi@jrpinteno.me
TokenView is available under the MIT license. See the LICENSE file for more info.