1
1
# ICInputAccessory
2
2
3
- Customized text fields used in the iCook app.
3
+ Customized text fields used in the [ iCook app] ( https://itunes.apple.com/app/id554065086 ) .
4
+ Try < https://testflight.icook.tw > .
4
5
5
- [ ![ Carthage compatible] ( https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat )] ( https://github.com/Carthage/Carthage )
6
6
[ ![ Build Status] ( https://travis-ci.org/polydice/ICInputAccessory.svg?branch=develop )] ( https://travis-ci.org/polydice/ICInputAccessory )
7
+ [ ![ Carthage compatible] ( https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat )] ( https://github.com/Carthage/Carthage )
8
+ [ ![ CocoaPods Compatible] ( https://img.shields.io/cocoapods/v/ICInputAccessory.svg )] ( https://img.shields.io/cocoapods/v/ICInputAccessory.svg )
9
+ ![ Platform] ( https://img.shields.io/cocoapods/p/ICInputAccessory.svg?style=flat )
10
+ ![ Swift 2.1.1] ( https://img.shields.io/badge/Swift-2.1.1-orange.svg )
7
11
8
12
### ICKeyboardDismissTextField
9
13
@@ -12,20 +16,14 @@ Customized text fields used in the iCook app.
12
16
### ICTokenField
13
17
14
18
* A horizontal scrolling UI that groups input texts.
15
- * Easy to add and delete tokens.
19
+ * Easy to add, select and delete tokens.
16
20
* Customizable icon and colors.
17
21
18
- <table >
19
- <tr >
20
- <th>ICKeyboardDismissTextField</th>
21
- <th rowspan="2"></th>
22
- <th>ICTokenField</th>
23
- </tr >
24
- <tr >
25
- <th><img src="https://raw.githubusercontent.com/polydice/ICInputAccessory/gh-pages/screenshots/ICKeyboardDismissTextField.png" width="90%" /></th>
26
- <th><img src="https://raw.githubusercontent.com/polydice/ICInputAccessory/gh-pages/screenshots/ICTokenField.png" width="90%" /></th>
27
- </tr >
28
- </table >
22
+ ![ ICTokenField] ( https://raw.githubusercontent.com/polydice/ICInputAccessory/gh-pages/screenshots/ICTokenField.gif )
23
+
24
+ ## Requirements
25
+
26
+ iOS 8.0+ with Xcode 7.2 or above.
29
27
30
28
## Installation
31
29
@@ -37,21 +35,22 @@ Customized text fields used in the iCook app.
37
35
github "polydice/ICInputAccessory"
38
36
```
39
37
40
- * On your application targets' ** General ** settings tab, in the ** Linked Frameworks and Libraries ** section, drag and drop ` ICInputAccessory. framework` from the Carthage/Build directory .
38
+ * Follow the [ instruction ] ( https://github.com/Carthage/Carthage#if-youre-building-for-ios ) to add the framework to an iOS project .
41
39
42
- * On your application targets’ ** Build Phases ** settings tab, click the ** + ** icon and choose ** New Run Script Phase ** . Create a Run Script with the following contents:
40
+ ### Install via [ CocoaPods ] ( http://guides.cocoapods.org/ )
43
41
44
- ```
45
- /usr/local/bin/carthage copy-frameworks
46
- ```
42
+ * Create a ` Podfile ` with the following specification and run ` pod install ` .
47
43
48
- and add the following path to ** Input Files** :
44
+ ``` rb
45
+ platform :ios , ' 8.0'
46
+ use_frameworks!
49
47
50
- ```
51
- $(SRCROOT)/Carthage/Build/iOS/ICInputAccessory.framework
48
+ pod ' ICInputAccessory'
52
49
```
53
50
54
- * For more information, please check out the [ Carthage Documentation] ( https://github.com/Carthage/Carthage#if-youre-building-for-ios ) .
51
+ ### Install Manually
52
+
53
+ * Everything you need resides in the ` Source ` directory. Drag those files to a project.
55
54
56
55
## Usage
57
56
@@ -107,7 +106,7 @@ public var normalTokenAttributes: [String : NSObject]? { get set }
107
106
public var highlightedTokenAttributes: [String : NSObject]? { get set }
108
107
```
109
108
110
- See ` Example/CustomizedTokenField.swift ` for more detail .
109
+ See ` Example/CustomizedTokenField.swift ` for more details .
111
110
112
111
#### ICTokenFieldDelegate
113
112
@@ -118,3 +117,33 @@ public var highlightedTokenAttributes: [String : NSObject]? { get set }
118
117
* ` tokenFieldWillReturn(_:) `
119
118
* ` tokenField(_:didEnterText:) `
120
119
* ` tokenField(_:didDeleteText:atIndex:) `
120
+
121
+ ## Development
122
+
123
+ Meke sure you have [ Homebrew] ( http://brew.sh/ ) installed, then run in the project root:
124
+
125
+ ```
126
+ make setup
127
+ ```
128
+
129
+ Tasks for testing:
130
+
131
+ ```
132
+ rake -T
133
+ ```
134
+
135
+ ## Contributing
136
+
137
+ Thank you for being interested in contributing to this project. We'd love to hear your ideas!
138
+
139
+ Please fork this repository, create a branch named like ` feature/some-new-feature ` and send us a pull request to make this project better.
140
+
141
+ ## Contact
142
+
143
+ [ ![ Twitter
] ( https://img.shields.io/badge/[email protected] ?style=flat )] ( https://twitter.com/polydice )
144
+
145
+ ## License
146
+
147
+ Copyright (c) 2016 [ Polydice, Inc.] ( https://polydice.com )
148
+
149
+ ** ICInputAccessory** is released under the MIT license. See [ LICENSE] ( https://github.com/polydice/ICInputAccessory/blob/master/LICENSE ) for details.
0 commit comments