Skip to content

Commit 35e0f7d

Browse files
authored
Merge pull request #29 from michaljach/develop
Swift 4.2 Support
2 parents 569fff7 + a14bfc3 commit 35e0f7d

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

Example/AppDelegate.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ 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,
35+
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil)
36+
-> Bool {
3537
window = UIWindow(frame: UIScreen.main.bounds)
3638
window?.backgroundColor = UIColor.white
3739
window?.rootViewController = UINavigationController(rootViewController: ExampleViewController())

Example/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "20x20",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "20x20",
11+
"scale" : "3x"
12+
},
313
{
414
"idiom" : "iphone",
515
"size" : "29x29",
@@ -29,6 +39,11 @@
2939
"idiom" : "iphone",
3040
"size" : "60x60",
3141
"scale" : "3x"
42+
},
43+
{
44+
"idiom" : "ios-marketing",
45+
"size" : "1024x1024",
46+
"scale" : "1x"
3247
}
3348
],
3449
"info" : {

Example/CustomizedTokenField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CustomizedTokenField: TokenField {
4040
}
4141

4242
override var intrinsicContentSize: CGSize {
43-
return UILayoutFittingExpandedSize
43+
return UIView.layoutFittingExpandedSize
4444
}
4545

4646
}

Example/ExampleViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ExampleViewController: UITableViewController {
4646
private lazy var flipButton: UIButton = {
4747
let _button = UIButton(type: .system)
4848
_button.frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 88)
49-
_button.setTitle("Storyboard", for: UIControlState())
49+
_button.setTitle("Storyboard", for: UIControl.State())
5050
_button.addTarget(self, action: .showStoryboard, for: .touchUpInside)
5151
return _button
5252
}()

ICInputAccessory.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
PRODUCT_BUNDLE_IDENTIFIER = com.polydice.ICInputAccessory.Example;
503503
PRODUCT_NAME = "$(TARGET_NAME)";
504504
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
505-
SWIFT_VERSION = 4.0;
505+
SWIFT_VERSION = 4.2;
506506
};
507507
name = Debug;
508508
};
@@ -521,7 +521,7 @@
521521
PRODUCT_BUNDLE_IDENTIFIER = com.polydice.ICInputAccessory.Example;
522522
PRODUCT_NAME = "$(TARGET_NAME)";
523523
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
524-
SWIFT_VERSION = 4.0;
524+
SWIFT_VERSION = 4.2;
525525
};
526526
name = Release;
527527
};

0 commit comments

Comments
 (0)