Skip to content

Commit cc2202d

Browse files
committed
Converted to Swift 4
1 parent 63adf9b commit cc2202d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

CoreMotionExample.xcodeproj/project.pbxproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
TargetAttributes = {
129129
6D4BABDB1C5130A60042ADA0 = {
130130
CreatedOnToolsVersion = 7.2;
131-
LastSwiftMigration = 0900;
131+
LastSwiftMigration = 1000;
132132
};
133133
};
134134
};
@@ -307,8 +307,7 @@
307307
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
308308
PRODUCT_BUNDLE_IDENTIFIER = maximbilan.CoreMotionExample;
309309
PRODUCT_NAME = "$(TARGET_NAME)";
310-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
311-
SWIFT_VERSION = 4.0;
310+
SWIFT_VERSION = 4.2;
312311
};
313312
name = Debug;
314313
};
@@ -320,8 +319,7 @@
320319
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
321320
PRODUCT_BUNDLE_IDENTIFIER = maximbilan.CoreMotionExample;
322321
PRODUCT_NAME = "$(TARGET_NAME)";
323-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
324-
SWIFT_VERSION = 4.0;
322+
SWIFT_VERSION = 4.2;
325323
};
326324
name = Release;
327325
};

CoreMotionExample/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1414
var window: UIWindow?
1515

1616

17-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
17+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
1818
// Override point for customization after application launch.
1919
return true
2020
}

0 commit comments

Comments
 (0)