iOS-study
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

iOSFirstApp.swift 778B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // iOSFirstApp.swift
  3. // iOSFirst
  4. //
  5. // Created by 孙宇峰 on 2023/1/31.
  6. //
  7. import SwiftUI
  8. let isDebug = true
  9. class AppDelegate: NSObject, UIApplicationDelegate {
  10. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
  11. Thread.sleep(forTimeInterval: 1.5)
  12. return true
  13. }
  14. func applicationDidReceiveMemoryWarning(_ application: UIApplication) {
  15. print("log-DidReceiveMemoryWarning")
  16. }
  17. }
  18. @main
  19. struct iOSFirstApp: App {
  20. @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
  21. var body: some Scene {
  22. WindowGroup {
  23. LoginView()
  24. SUIToastViewContainer(stackOverlap: .overlap)
  25. }
  26. }
  27. }