diff options
| author | Fuwn <[email protected]> | 2026-04-01 13:59:52 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-01 13:59:52 +0000 |
| commit | ddaa9cbfe0cc8d254d4901ad192918d91dd627d4 (patch) | |
| tree | b0d1cf6642ae97ce41ff570f2bcd4a06b359685e /Sora/App | |
| parent | Fix iOS install recipe app path resolution (diff) | |
| download | sora-testing-ddaa9cbfe0cc8d254d4901ad192918d91dd627d4.tar.xz sora-testing-ddaa9cbfe0cc8d254d4901ad192918d91dd627d4.zip | |
Migrate settings manager to Swift Observation
Diffstat (limited to 'Sora/App')
| -rw-r--r-- | Sora/App/SoraApp.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Sora/App/SoraApp.swift b/Sora/App/SoraApp.swift index 8fdfb4d..77a50c7 100644 --- a/Sora/App/SoraApp.swift +++ b/Sora/App/SoraApp.swift @@ -12,18 +12,18 @@ func debugPrint( @main struct SoraApp: App { - @StateObject private var settings = SettingsManager() + @State private var settings = SettingsManager() @ViewBuilder private func settingsContent() -> some View { SettingsView() - .environmentObject(settings) + .environment(settings) } var body: some Scene { WindowGroup { MainView() - .environmentObject(settings) + .environment(settings) } #if os(macOS) |