swiftui-multiplatform/Shared/WriteFreely_MultiPlatformApp.swift

25 lines
516 B
Swift
Raw Normal View History

2020-07-22 13:57:10 +00:00
import SwiftUI
@main
struct WriteFreely_MultiPlatformApp: App {
#if DEBUG
@StateObject private var store = testPostStore
#else
@StateObject private var store = PostStore()
#endif
2020-07-22 13:57:10 +00:00
var body: some Scene {
WindowGroup {
ContentView(postStore: store)
2020-07-22 13:57:10 +00:00
}
#if os(macOS)
Settings {
SettingsView()
.frame(minWidth: 300, maxWidth: 300, minHeight: 200, maxHeight: 200)
.padding()
}
#endif
2020-07-22 13:57:10 +00:00
}
}