Skip to content

Commit

Permalink
⚓️:: [#22] MindGymTimerKit 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jjunhaa0211 committed Dec 28, 2023
1 parent 9a3956a commit e499487
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Sources/MindGymKit /MindGymTimerKit.swift
Original file line number Diff line number Diff line change
@@ -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()
}
}

0 comments on commit e499487

Please sign in to comment.