2020-07-19 02:12:32 +00:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
2020-07-19 02:06:12 +00:00
|
|
|
|
|
|
|
import SwiftUI
|
2020-09-01 07:33:49 +00:00
|
|
|
import ViewModels
|
2020-07-19 02:06:12 +00:00
|
|
|
|
|
|
|
@main
|
|
|
|
struct MetatextApp: App {
|
2020-08-12 07:24:39 +00:00
|
|
|
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
|
|
|
|
2020-07-19 02:06:12 +00:00
|
|
|
var body: some Scene {
|
|
|
|
WindowGroup {
|
2020-08-09 11:27:38 +00:00
|
|
|
RootView(
|
2020-09-01 07:33:49 +00:00
|
|
|
// swiftlint:disable force_try
|
|
|
|
viewModel: try! RootViewModel(
|
2020-10-22 22:16:06 +00:00
|
|
|
environment: .live(
|
|
|
|
userNotificationCenter: .current(),
|
|
|
|
reduceMotion: { UIAccessibility.isReduceMotionEnabled }),
|
2020-09-01 07:33:49 +00:00
|
|
|
registerForRemoteNotifications: appDelegate.registerForRemoteNotifications))
|
|
|
|
// swiftlint:enable force_try
|
2020-07-19 02:06:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|