1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-11 08:55:54 +01:00
metatext-app-ios-iphone-ipad/System/MetatextApp.swift
2020-10-22 15:16:10 -07:00

25 lines
783 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
import ViewModels
@main
struct MetatextApp: App {
// swiftlint:disable weak_delegate
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
// swiftlint:enable weak_delegate
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
}
}
}