summaryrefslogtreecommitdiff
path: root/Sora/App
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-04-01 13:59:52 +0000
committerFuwn <[email protected]>2026-04-01 13:59:52 +0000
commitddaa9cbfe0cc8d254d4901ad192918d91dd627d4 (patch)
treeb0d1cf6642ae97ce41ff570f2bcd4a06b359685e /Sora/App
parentFix iOS install recipe app path resolution (diff)
downloadsora-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.swift6
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)