AppDelegate.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. // Software License Agreement (BSD License)
  2. //
  3. // Copyright (c) 2010-2025, Deusty, LLC
  4. // All rights reserved.
  5. //
  6. // Redistribution and use of this software in source and binary forms,
  7. // with or without modification, are permitted provided that the following conditions are met:
  8. //
  9. // * Redistributions of source code must retain the above copyright notice,
  10. // this list of conditions and the following disclaimer.
  11. //
  12. // * Neither the name of Deusty nor the names of its contributors may be used
  13. // to endorse or promote products derived from this software without specific
  14. // prior written permission of Deusty, LLC.
  15. import UIKit
  16. @main
  17. final class AppDelegate: UIResponder, UIApplicationDelegate {
  18. @objc dynamic var window: UIWindow?
  19. @objc dynamic func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  20. // Override point for customization after application launch.
  21. let window = UIWindow()
  22. window.backgroundColor = .black
  23. self.window = window
  24. self.window?.rootViewController = ViewController()
  25. self.window?.makeKeyAndVisible()
  26. return true
  27. }
  28. }