-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathACBTokenField.podspec
More file actions
15 lines (15 loc) · 1.68 KB
/
ACBTokenField.podspec
File metadata and controls
15 lines (15 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Pod::Spec.new do |s|
s.name = "ACBTokenField"
s.version = "2.3.0"
s.summary = "A swift extension on NSTokenField which makes it highly customizable and removes a lot of boilerplate code from implementation."
s.description = <<-DESC
A swift extension on NSTokenField which makes it highly customizable and removes a lot of boilerplate code from implementation. Major features are: No need to subclass/or change anything in XIB/Storyboard. Added few properties which makes it customizable such as `shouldDisplayClearButton`, `shouldDisplaySearchIcon`, `leftView`, `shouldEnableTokenMenu` etc.. No need to implement delegate methods for simpler use cases. Just set an array of token names list or provide a default list of tokens for all indices. Rest will be handled by `NSTokenField`. Supports `NSTokenFieldDelegate` as well with the customization. Just set `tokenDelegate` and implement the methods as usual. Added support for getting `selectedTokenIndex` so that tokens can be customized based on the index. `tokenIndex` provided in `NSTokenFieldDelegate` method has a bug and hence always returns zero. `selectedTokenIndex` will help in the meantime. Support for adding tokens. Support for resetting tokens. Get `tokenIndex` based on the `representedObject` param in delegate methods.
DESC
s.homepage = "https://github.com/akhilcb/ACBTokenField"
s.license = "MIT"
s.author = "Akhil"
s.platform = :osx, '10.10'
s.source = { :git => "https://github.com/akhilcb/ACBTokenField.git", :tag => "2.3.0" }
s.source_files = "ACBTokenField", "Sources/ACBTokenField/**/*.{swift}"
s.resources = "ACBTokenField/Resources/Assets.xcassets"
end