Atoll/DynamicIsland/enums/TimerDisplayMode.swift
2025-12-09 17:03:17 +05:30

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."
}
}
}