mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
26 lines
635 B
Swift
26 lines
635 B
Swift
import Defaults
|
|
|
|
public enum TimerDisplayMode: String, CaseIterable, Defaults.Serializable, Identifiable {
|
|
case tab
|
|
case popover
|
|
|
|
public var id: String { rawValue }
|
|
|
|
var displayName: String {
|
|
switch self {
|
|
case .tab:
|
|
return "Tab"
|
|
case .popover:
|
|
return "Popover"
|
|
}
|
|
}
|
|
|
|
var description: String {
|
|
switch self {
|
|
case .tab:
|
|
return "Shows timer controls as a dedicated tab inside the open notch."
|
|
case .popover:
|
|
return "Keeps the current popover button beside the notch instead of adding a tab."
|
|
}
|
|
}
|
|
}
|