mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-28 19:11:30 +00:00
22 lines
706 B
Swift
22 lines
706 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import SwiftUI
|
|
import ViewModels
|
|
|
|
@main
|
|
struct MetatextApp: App {
|
|
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
RootView(
|
|
// swiftlint:disable force_try
|
|
viewModel: try! RootViewModel(
|
|
environment: .live(
|
|
userNotificationCenter: .current(),
|
|
reduceMotion: { UIAccessibility.isReduceMotionEnabled }),
|
|
registerForRemoteNotifications: appDelegate.registerForRemoteNotifications))
|
|
// swiftlint:enable force_try
|
|
}
|
|
}
|
|
}
|