~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/old-fella

Old people's social media app

0
1
main
17 lines · 359 B Raw History
import Observation

@MainActor
@Observable
final class NotificationGroupState: Identifiable {
    let id: String
    private(set) var group: NotificationGroup

    init(group: NotificationGroup) {
        id = group.id
        self.group = group
    }

    func update(group: NotificationGroup) {
        if self.group != group { self.group = group }
    }
}