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-08-31 18:57:02 +00:00
|
|
|
import ServiceLayer
|
2020-07-19 02:06:12 +00:00
|
|
|
|
|
|
|
@main
|
|
|
|
struct MetatextApp: App {
|
2020-08-12 07:24:39 +00:00
|
|
|
// swiftlint:disable weak_delegate
|
|
|
|
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
|
|
|
// swiftlint:enable weak_delegate
|
|
|
|
|
2020-07-19 02:06:12 +00:00
|
|
|
var body: some Scene {
|
|
|
|
WindowGroup {
|
2020-08-09 11:27:38 +00:00
|
|
|
RootView(
|
2020-08-12 07:24:39 +00:00
|
|
|
viewModel: RootViewModel(appDelegate: appDelegate,
|
2020-08-31 10:21:01 +00:00
|
|
|
// swiftlint:disable force_try
|
|
|
|
allIdentitiesService: try! AllIdentitiesService(environment: .live),
|
|
|
|
// swiftlint:enable force_try
|
2020-08-13 10:18:21 +00:00
|
|
|
userNotificationService: UserNotificationService()))
|
2020-07-19 02:06:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|