From 1d07fb4c04f43bde0af3240f344ad88b23592673 Mon Sep 17 00:00:00 2001 From: Sushant Verma Date: Sat, 29 Sep 2018 16:07:10 +1000 Subject: [PATCH] Updating for swift 4.2 --- Sources/EasyTimer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/EasyTimer.swift b/Sources/EasyTimer.swift index bb47d65..23f9dfa 100644 --- a/Sources/EasyTimer.swift +++ b/Sources/EasyTimer.swift @@ -140,7 +140,7 @@ extension Timer { /// By default, the timer is scheduled on the current run loop for the default mode. /// Specify `runLoop` or `modes` to override these defaults. public func start(runLoop: RunLoop = RunLoop.current) { - runLoop.add(self, forMode: RunLoopMode.defaultRunLoopMode) + runLoop.add(self, forMode: RunLoop.Mode.default) } /// Remove this timer from the run loop