We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57bde6a commit 5574490Copy full SHA for 5574490
1 file changed
MagicTimer/Classes/MGStandardTimerFormatter.swift
@@ -1,8 +1,8 @@
1
2
import Foundation
3
4
-/// A type that any date formatter can conform
5
-protocol MGFormatter {
+/// A type that any date formatter should conform
+public protocol MGTimeFormatter {
6
/// Convert time interval to String format
7
/// - Parameter ti: elapsed time
8
func converToValidFormat(ti: TimeInterval) -> String?
@@ -18,7 +18,7 @@ enum MGTimeUnit: Int {
18
case milliSeconds = 1000
19
}
20
21
-class MGStandardTimerFormatter: DateComponentsFormatter, MGFormatter {
+class MGStandardTimerFormatter: DateComponentsFormatter, MGTimeFormatter {
22
23
override init() {
24
super.init()
0 commit comments