AppDelegate.swift 626 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // AppDelegate.swift
  3. // Chat (iOS)
  4. //
  5. // Created by Sergey Tarasov on 09.10.2022.
  6. //
  7. import UIKit
  8. import SwiftUI
  9. import XMPPFramework
  10. @main
  11. class AppDelegate: UIResponder, UIApplicationDelegate {
  12. var window: UIWindow?
  13. func application(
  14. _ application: UIApplication,
  15. didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil
  16. ) -> Bool {
  17. window = UIWindow(frame: UIScreen.main.bounds)
  18. window?.rootViewController = UIHostingController(rootView: ContentView())
  19. window?.makeKeyAndVisible()
  20. DDLog.add(DDOSLogger.sharedInstance, with: DDLogLevel.all)
  21. return true
  22. }
  23. }