Add ReminderLiveActivity

This commit is contained in:
Hariharan Mudaliar 2025-11-10 21:13:22 +05:30
commit 422b986721
8 changed files with 579 additions and 3 deletions

View file

@ -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 {