1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-18 12:28:35 +01:00
metatext-app-ios-iphone-ipad/System/MetatextApp.swift

23 lines
677 B
Swift
Raw Normal View History

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