Skip to content

Commit 3dead0c

Browse files
author
Weilson Wonder
committed
convert to 4.2
1 parent 77325e6 commit 3dead0c

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Sources/SwiftyTimer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ extension Timer {
104104
/// By default, the timer is scheduled on the current run loop for the default mode.
105105
/// Specify `runLoop` or `modes` to override these defaults.
106106

107-
public func start(runLoop: RunLoop = .current, modes: RunLoopMode...) {
108-
let modes = modes.isEmpty ? [.defaultRunLoopMode] : modes
107+
public func start(runLoop: RunLoop = .current, modes: RunLoop.Mode...) {
108+
let modes = modes.isEmpty ? [RunLoop.Mode.default] : modes
109109

110110
for mode in modes {
111111
runLoop.add(self, forMode: mode)

SwiftyTimer.xcodeproj/project.pbxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
TargetAttributes = {
211211
3E721ABA1BF7255D008AF027 = {
212212
CreatedOnToolsVersion = 7.1;
213-
LastSwiftMigration = 0800;
213+
LastSwiftMigration = 1000;
214214
};
215215
6E7E40891C84B1A20030CEBB = {
216216
CreatedOnToolsVersion = 7.2;
@@ -425,6 +425,8 @@
425425
PRODUCT_BUNDLE_IDENTIFIER = io.radex.SwiftyTimer;
426426
PRODUCT_NAME = "$(TARGET_NAME)";
427427
SKIP_INSTALL = YES;
428+
SWIFT_SWIFT3_OBJC_INFERENCE = On;
429+
SWIFT_VERSION = 4.2;
428430
};
429431
name = Debug;
430432
};
@@ -445,6 +447,8 @@
445447
PRODUCT_BUNDLE_IDENTIFIER = io.radex.SwiftyTimer;
446448
PRODUCT_NAME = "$(TARGET_NAME)";
447449
SKIP_INSTALL = YES;
450+
SWIFT_SWIFT3_OBJC_INFERENCE = On;
451+
SWIFT_VERSION = 4.2;
448452
};
449453
name = Release;
450454
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)