Releases: whitesmith/WSTagsField
Releases · whitesmith/WSTagsField
v3.1.0 (Swift 4.1)
Changes
- By default, the return key is used to create a tag in the field. Now, you can change it and use the comma or the space key instead:
tagsField.acceptTagOption = .space
. onDidEndEditing
andonDidBeginEditing
events were removed in favor ofUITextFieldDelegate
methods (textFieldDidBeginEditing(textField:)
andtextFieldDidEndEditing(textField:)
). The delegate should be assigned to thetextDelegate
property and it's related with the input text field. It's also a nice way to have access totextFieldShouldReturn(textField:)
where it's possible to change the first responder when thereturn
key is free (i.e.:tagsField.acceptTagOption = .comma
is set).
v3.0.0 (Swift 4.0)
Breaking changes
padding
property is now using the standardcontentInset
property of UIView. So,padding
has been deprecated.displayDelimiter
has been renamed toisDelimiterVisible
.tagCornerRadius
has been renamed tocornerRadius
.placeholderAlwayVisible
has been renamed toplaceholderAlwaysVisible
.
Changes
- You can now define the size of the TagView by defining a margin of type
UIEdgeInsets
tolayoutMargins
property. - You can now define a max number of lines by using the
numberOfLines
property. - You can now define the space between lines using the
spaceBetweenLines
property.
Fixes
- #65 layout issues in an
UITableView
.
Thanks 🎉💪🙌
@billzhou0223, @griffinmacias, @matsune, @nicol3a and @CharlesAbouYakzan for the amazing API improvements and fixes.
@krezzoid for the conversion and improvements for Swift 4.0.
v2.1.2 (Swift 3.0)
- Fix #37: use WSTagsField in a static TableViewController Cell.
v2.1.1 (Swift 3.0)
- Fix #39: solve retain cycle
- Fix #31: Traits and autocorrection (ty @danielrhodes)
v1.3.0 (Swift 2.3)
Please use the swift2.3
branch for now.
CocoaPods
pod 'WSTagsField', :git => 'https://github.com/whitesmith/WSTagsField.git', :branch => 'swift2.3'
or just add swift_version = '2.3'
to your Podfile
:
target 'AmazingProject' do
swift_version = '2.3'
pod 'WSTagsField', '~>1.2.0'
end
Carthage
github "whitesmith/WSTagsField" "swift2.3"
or just run carthage
with Swift 2.3 toolchain:
carthage update WSTagsField --no-use-binaries --platform iOS --toolchain
com.apple.dt.toolchain.Swift_2_3
v1.2.5 (Swift 2.2)
- Fix #39: solve retain cycle.