Skip to content

Commit 2b8dc47

Browse files
committed
Specify Swift 4 in the podspec
1 parent ff52a8b commit 2b8dc47

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.swift-version

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

.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: xcode9
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 8 (11.0) [" || true
11+
- open -b com.apple.iphonesimulator
1212
install:
1313
- make install
1414
before_script:

ICInputAccessory.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Pod::Spec.new do |s|
1919
s.license = { type: "MIT", file: "LICENSE" }
2020
s.authors = "bcylin", "trisix"
2121
s.platform = :ios, "8.0"
22+
s.swift_version = "4.0"
2223
s.source = { git: "https://github.com/polydice/ICInputAccessory.git", tag: "v#{s.version}" }
2324
s.requires_arc = true
2425

Source/TokenField/ICTokenField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
300300
continue
301301
}
302302

303-
let index = text.index(text.endIndex, offsetBy: -delimiter.characters.count)
303+
let index = text.index(text.endIndex, offsetBy: -delimiter.count)
304304
let newText = String(text[..<index])
305305

306306
if !newText.isEmpty && newText != delimiter && (delegate?.tokenField?(self, shouldCompleteText: newText) ?? true) {

0 commit comments

Comments
 (0)