33<a href =" https://github.com/Carthage/Carthage " ><img src =" https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat " ></a >
44[ ![ SwiftPM Compatible] ( https://img.shields.io/badge/SwiftPM-Compatible-brightgreen.svg )] ( https://swift.org/package-manager/ )
55<a href =" https://github.com/cocoapods/cocoapods " ><img src =" https://img.shields.io/cocoapods/v/WSTagsField.svg " ></a >
6- [ ![ Swift 2.2 ] ( https://img.shields.io/badge/Swift-2.2 -orange.svg?style=flat )] ( https://developer.apple.com/swift/ )
6+ [ ![ Swift 3.0 ] ( https://img.shields.io/badge/Swift-3.0 -orange.svg?style=flat )] ( https://developer.apple.com/swift/ )
77[ ![ Platforms iOS] ( https://img.shields.io/badge/Platforms-iOS-lightgray.svg?style=flat )] ( https://developer.apple.com/swift/ )
88[ ![ Build Status] ( https://www.bitrise.io/app/059bc89743c769dc.svg?token=Wu0zdJtTsCQlVFSG1XuGIw&branch=master )] ( https://www.bitrise.io/app/059bc89743c769dc )
99[ ![ License MIT] ( https://img.shields.io/badge/License-MIT-lightgrey.svg?style=flat )] ( https://opensource.org/licenses/MIT )
@@ -17,15 +17,15 @@ An iOS text field that represents different Tags.
1717``` swift
1818
1919let tagsField = WSTagsField ()
20- tagsField.backgroundColor = .whiteColor ()
20+ tagsField.backgroundColor = .white
2121tagsField.padding = UIEdgeInsets (top : 0 , left : 0 , bottom : 0 , right : 0 )
2222tagsField.spaceBetweenTags = 10.0
23- tagsField.font = .systemFontOfSize ( 12.0 )
24- tagsField.tintColor = .greenColor ()
25- tagsField.textColor = .blackColor ()
26- tagsField.fieldTextColor = .blueColor ()
27- tagsField.selectedColor = .blackColor ()
28- tagsField.selectedTextColor = .redColor ()
23+ tagsField.font = .systemFont ( ofSize : 12.0 )
24+ tagsField.tintColor = .green
25+ tagsField.textColor = .black
26+ tagsField.fieldTextColor = .blue
27+ tagsField.selectedColor = .black
28+ tagsField.selectedTextColor = .red
2929tagsField.delimiter = " ,"
3030
3131// Events
@@ -64,7 +64,7 @@ tagsField.onDidChangeHeightTo = { sender, height in
6464To install it, simply add the following line to your ** Cartfile** :
6565
6666``` ruby
67- github " whitesmith/WSTagsField"
67+ github " whitesmith/WSTagsField" == " 2.0.0.beta.1 "
6868```
6969
7070Then run ` carthage update ` .
@@ -81,7 +81,7 @@ for up to date installation instructions.
8181To install it, simply add the following line to your ** Podfile** :
8282
8383``` ruby
84- pod " WSTagsField"
84+ pod " WSTagsField" , :git => ' https://github.com/whitesmith/WSTagsField.git ' , :tag => ' 2.0.0.beta.1 '
8585```
8686
8787You will also need to make sure you're opting into using frameworks:
@@ -102,14 +102,14 @@ If your version of Swift supports the SPM, you just need to add WSTagsField as a
102102let package = Package (
103103 name : " YOUR_PROJECT_NAME" ,
104104 dependencies : [
105- .Package (url : " https://github.com/whitesmith/WSTagsField.git" , , versions : " 1.2 .0" ..< Version.max ),
105+ .Package (url : " https://github.com/whitesmith/WSTagsField.git" , , versions : " 2.0 .0" ..< Version.max ),
106106 ...
107107 ]
108108 ...
109109)
110110```
111111
112- (Note that the Swift Package Manager is still in early design and development, for more infomation checkout its repository)
112+ (** Note** that the Swift Package Manager is still in early design and development, for more infomation checkout its repository)
113113
114114#### Manually
115115
@@ -118,7 +118,7 @@ Download all the source files and drop them into your project.
118118## Requirements
119119
120120* iOS 8.0+
121- * Xcode 7 (Swift 2.2 )
121+ * Xcode 8 (Swift 3.0 )
122122
123123# Contributing
124124
0 commit comments