Skip to content

Commit 3639c3c

Browse files
committed
Merge branch 'release/1.5.0'
2 parents f2e9700 + 8cb56bf commit 3639c3c

32 files changed

+173
-159
lines changed

.jazzy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ github_url: https://github.com/polydice/ICInputAccessory
55
github_file_prefix: https://github.com/polydice/ICInputAccessory/blob/develop
66
xcodebuild_arguments: [-project, ICInputAccessory.xcodeproj, -scheme, ICInputAccessory-iOS]
77
module: ICInputAccessory
8-
module_version: 1.4.1
8+
module_version: 1.5.0
99
output: docs/output
1010
theme: fullwidth
1111
skip_undocumented: true

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.1
1+
2.4.3

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1
1+
4.1

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
disabled_rules:
22
- file_length
3+
- identifier_name
34
- line_length
45
- type_body_length
56
- vertical_whitespace

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: objective-c
2-
osx_image: xcode8.3
2+
osx_image: xcode9.3beta
33
cache:
44
bundler: true
55
directories:
@@ -8,7 +8,7 @@ cache:
88
before_install:
99
- export LANG=en_US.UTF-8
1010
- xcrun instruments -s devices
11-
- xcrun instruments -w "iPhone 7 (10.3.1) [" || true
11+
- open -b com.apple.iphonesimulator
1212
install:
1313
- make install
1414
before_script:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.5.0
2+
3+
* Swift 4.0
4+
15
## v1.4.1
26

37
* Fix `tokenField(_:didChangeInputText:)` with the delete key [#20](https://github.com/polydice/ICInputAccessory/pull/20)

Example/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3131

3232
var window: UIWindow?
3333

34-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
34+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? = nil) -> Bool {
3535
window = UIWindow(frame: UIScreen.main.bounds)
3636
window?.backgroundColor = UIColor.white
3737
window?.rootViewController = UINavigationController(rootViewController: ExampleViewController())

Example/CustomizedTokenField.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extension ICTokenField {
5757
layer.cornerRadius = 5
5858
layer.shouldRasterize = true
5959
layer.rasterizationScale = UIScreen.main.scale
60-
backgroundColor = UIColor(red:0.8, green:0.32, blue:0.24, alpha:1)
60+
backgroundColor = UIColor(red: 0.8, green: 0.32, blue: 0.24, alpha: 1)
6161

6262
textField.textColor = UIColor.white
6363
textField.tintColor = UIColor.white
@@ -66,21 +66,21 @@ extension ICTokenField {
6666
attributedPlaceholder = NSAttributedString(
6767
string: String(describing: type(of: self)),
6868
attributes: [
69-
NSForegroundColorAttributeName: UIColor.white.withAlphaComponent(0.5),
70-
NSFontAttributeName: UIFont.boldSystemFont(ofSize: 14)
69+
.foregroundColor: UIColor.white.withAlphaComponent(0.5),
70+
.font: UIFont.boldSystemFont(ofSize: 14)
7171
]
7272
)
7373

7474
normalTokenAttributes = [
75-
NSForegroundColorAttributeName: UIColor.white,
76-
NSBackgroundColorAttributeName: UIColor.white.withAlphaComponent(0.25),
77-
NSFontAttributeName: UIFont.boldSystemFont(ofSize: 14)
75+
.foregroundColor: UIColor.white,
76+
.backgroundColor: UIColor.white.withAlphaComponent(0.25),
77+
.font: UIFont.boldSystemFont(ofSize: 14)
7878
]
7979

8080
highlightedTokenAttributes = [
81-
NSForegroundColorAttributeName: UIColor(red:0.8, green:0.32, blue:0.24, alpha:1),
82-
NSBackgroundColorAttributeName: UIColor.white,
83-
NSFontAttributeName: UIFont.boldSystemFont(ofSize: 14)
81+
.foregroundColor: UIColor(red: 0.8, green: 0.32, blue: 0.24, alpha: 1),
82+
.backgroundColor: UIColor.white,
83+
.font: UIFont.boldSystemFont(ofSize: 14)
8484
]
8585
}
8686

Example/CustomizedTokenViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CustomizedTokenViewController: UIViewController, ICTokenFieldDelegate {
4848

4949
override func viewDidLoad() {
5050
super.viewDidLoad()
51-
navigationController?.navigationBar.barTintColor = UIColor(red:0.96, green:0.48, blue:0.4, alpha:1)
51+
navigationController?.navigationBar.barTintColor = UIColor(red: 0.96, green: 0.48, blue: 0.4, alpha: 1)
5252
navigationController?.navigationBar.isTranslucent = false
5353
navigationController?.navigationBar.barStyle = .black
5454

Example/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.4.1</string>
20+
<string>1.5.0</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)