From e801ae4eb5cb75625f2992ce1febe8e5b99d5657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=80=ED=98=B8?= <127753071+Eunho0922@users.noreply.github.com> Date: Wed, 27 Dec 2023 21:19:38 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=97=20::=20[#20]=20=ED=83=80=EC=9D=B4?= =?UTF-8?q?=EB=A8=B8=20=EB=A6=AC=ED=8E=99=ED=86=A0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/MindGymKit /MindGymKit.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/MindGymKit /MindGymKit.swift b/Sources/MindGymKit /MindGymKit.swift index 79557c4..c8e90e3 100644 --- a/Sources/MindGymKit /MindGymKit.swift +++ b/Sources/MindGymKit /MindGymKit.swift @@ -140,7 +140,6 @@ public class MindGaGymKitTimer: NSObject { func stop() { timer?.invalidate() timer = nil - } func restart() { @@ -157,6 +156,10 @@ public class MindGaGymKitTimer: NSObject { } private func timeString(from counter: Double) -> String { + + if counter == 0 { + stop() + } let hours: String = String(format: "%02d", Int(counter / 3600)) let minutes: String = String(format: "%02d", Int(counter / 60)) @@ -196,4 +199,3 @@ public class MindGymTimerKit { } } -