mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-13 12:01:01 +00:00
22 lines
776 B
Swift
22 lines
776 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import SwiftUI
|
|
import Services
|
|
|
|
@main
|
|
struct MetatextApp: App {
|
|
// swiftlint:disable weak_delegate
|
|
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
|
// swiftlint:enable weak_delegate
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
RootView(
|
|
viewModel: RootViewModel(appDelegate: appDelegate,
|
|
// swiftlint:disable force_try
|
|
allIdentitiesService: try! AllIdentitiesService(environment: .live),
|
|
// swiftlint:enable force_try
|
|
userNotificationService: UserNotificationService()))
|
|
}
|
|
}
|
|
}
|