WSTagsField Versions Save

An iOS text field that represents tags, hashtags, tokens in general.

3.1.0

6 years ago

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 and onDidBeginEditing events were removed in favor of UITextFieldDelegate methods (textFieldDidBeginEditing(textField:) and textFieldDidEndEditing(textField:)). The delegate should be assigned to the textDelegate property and it's related with the input text field. It's also a nice way to have access to textFieldShouldReturn(textField:) where it's possible to change the first responder when the return key is free (i.e.: tagsField.acceptTagOption = .comma is set).

1.3.0

6 years ago

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

3.0.0

6 years ago

Breaking changes

  • padding property is now using the standard contentInset property of UIView. So, padding has been deprecated.
  • displayDelimiter has been renamed to isDelimiterVisible.
  • tagCornerRadius has been renamed to cornerRadius.
  • placeholderAlwayVisible has been renamed to placeholderAlwaysVisible.

Changes

  • You can now define the size of the TagView by defining a margin of type UIEdgeInsets to layoutMargins 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.

2.1.2

6 years ago
  • Fix #37: use WSTagsField in a static TableViewController Cell.

2.1.1

7 years ago
  • Fix #39: solve retain cycle
  • Fix #31: Traits and autocorrection (ty @danielrhodes)

1.2.5

7 years ago
  • Fix #39: solve retain cycle.

1.2.4

7 years ago

⚠️ This release has an invalid podspec. Please update to 1.2.5.

  • Fix #19: set fieldTextColor (ty @canaksoy)
  • Fix #18: allow change of keyboard type of the textField (ty @brnunes)

2.1.0

7 years ago
  • Fix #30: add keyboard return key type (ty @ShiWeiCN)
  • Fix #29: switching readonly on and off (ty @treyrich)
  • Fix #25: add inputFieldAccessoryView property
  • Fix #24: add onDidSelectTagView and onDidUnselectTagView event
  • Enhancement: add selectNextTag and selectPrevTag methods

2.0.1

7 years ago

⚠️ Missed CocoaPod update.

  • Fix #30: add keyboard return key type (ty @ShiWeiCN)
  • Fix #29: switching readonly on and off (ty @treyrich)
  • Fix #25: add inputFieldAccessoryView property
  • Fix #24: add onDidSelectTagView and onDidUnselectTagView event
  • Enhancement: add selectNextTag and selectPrevTag methods

2.0.0

7 years ago

Instructions

Carthage

github "whitesmith/WSTagsField" ~> 2.0.0

CocoaPods

pod 'WSTagsField' '~> 2.0.0'

For more information please see the updated README.