swiftui-multiplatform/Shared/WriteFreely_MultiPlatformApp.swift

17 lines
310 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
}
}
}