
Notification Stack
Lock-screen style notifications that rest in a 3-deep layered stack and fan out into a list with staggered springs. Swipe any notification away and the rest glide up to fill the gap.
- notification
- stack
- gesture
snippet.swift302 lines
8 files • Scroll to see all →
/// A single notification shown in a `NotificationStack`.public struct NotificationStackMessage: Identifiable, Equatable { public let id = UUID() let app: String let systemImage: String let tint: Color let title: String let message: String let time: String public init(app: String, systemImage: String, tint: Color, title: String, message: String, time: String = "now") { self.app = app self.systemImage = systemImage self.tint = tint self.title = title self.message = message self.time = time }}Viewing: Model.swift•1 of 8