mirror of
https://github.com/yattee/yattee.git
synced 2025-10-11 01:48:12 +00:00
Replace environment objects with observed objects
This commit is contained in:
@@ -2,6 +2,8 @@ import Foundation
|
||||
import SwiftUI
|
||||
|
||||
final class SettingsModel: ObservableObject {
|
||||
static var shared = SettingsModel()
|
||||
|
||||
@Published var presentingAlert = false
|
||||
@Published var alert = Alert(title: Text("Error"))
|
||||
|
||||
|
Reference in New Issue
Block a user