Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10669606
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/Shared/WriteFreely_MultiPlatformApp.swift b/Shared/WriteFreely_MultiPlatformApp.swift
index 1b426da..feb4993 100644
--- a/Shared/WriteFreely_MultiPlatformApp.swift
+++ b/Shared/WriteFreely_MultiPlatformApp.swift
@@ -1,27 +1,27 @@
import SwiftUI
@main
struct WriteFreely_MultiPlatformApp: App {
@StateObject private var preferences = PreferencesModel()
#if DEBUG
@StateObject private var store = testPostStore
#else
@StateObject private var store = PostStore()
#endif
var body: some Scene {
WindowGroup {
ContentView(postStore: store, preferences: preferences)
- .environment(\.colorScheme, preferences.preferredColorScheme)
+ .preferredColorScheme(preferences.preferredColorScheme)
}
#if os(macOS)
Settings {
SettingsView(preferences: preferences)
.frame(minWidth: 300, maxWidth: 300, minHeight: 200, maxHeight: 200)
.padding()
}
#endif
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, May 16, 12:20 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3240120
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment