mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Working stuff with revamped UI
This commit is contained in:
parent
8659a338dd
commit
5a8c592157
11 changed files with 646 additions and 279 deletions
26
DynamicIsland/enums/TimerDisplayMode.swift
Normal file
26
DynamicIsland/enums/TimerDisplayMode.swift
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
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."
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue