From e499487df50d480c637baf19f19298b1c0b5bdc4 Mon Sep 17 00:00:00 2001 From: junha Date: Thu, 28 Dec 2023 17:27:23 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=93=EF=B8=8F::=20[#22]=20MindGymTimerKit?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/MindGymKit /MindGymTimerKit.swift | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Sources/MindGymKit /MindGymTimerKit.swift diff --git a/Sources/MindGymKit /MindGymTimerKit.swift b/Sources/MindGymKit /MindGymTimerKit.swift new file mode 100644 index 0000000..abc3f3f --- /dev/null +++ b/Sources/MindGymKit /MindGymTimerKit.swift @@ -0,0 +1,35 @@ +// +// File.swift +// +// +// Created by 박준하 on 12/28/23. +// + +import UIKit +import RxSwift + +// MARK: - MindGymTimerKit +open class MindGymTimerKit { + public let mainTimer: TimerControl = MindGaGymKitTimer() + + public func setting(count: Double) { + (mainTimer as? MindGaGymKitTimer)?.setting(count: count) + } + + public func startTimer() { + mainTimer.start() + } + + public func stopTimer() { + mainTimer.stop() + } + + public func resetTimer() { + mainTimer.reset() + } + + public func restartTimer() { + (mainTimer as? MindGaGymKitTimer)?.restart() + } +} +