mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-29 08:04:32 +00:00
Add ReminderLiveActivity
This commit is contained in:
parent
b643f1d905
commit
422b986721
8 changed files with 579 additions and 3 deletions
|
|
@ -19,6 +19,7 @@ enum SneakContentType {
|
|||
case battery
|
||||
case download
|
||||
case timer
|
||||
case reminder
|
||||
case recording
|
||||
case doNotDisturb
|
||||
case bluetoothAudio
|
||||
|
|
@ -143,7 +144,8 @@ class DynamicIslandViewCoordinator: ObservableObject {
|
|||
}
|
||||
|
||||
func toggleSneakPeek(status: Bool, type: SneakContentType, duration: TimeInterval = 1.5, value: CGFloat = 0, icon: String = "") {
|
||||
sneakPeekDuration = duration
|
||||
let resolvedDuration = type == .timer ? 10 : duration
|
||||
sneakPeekDuration = resolvedDuration
|
||||
if type != .music && type != .timer {
|
||||
// close()
|
||||
if !hudReplacement {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue