mirror of
https://github.com/yattee/yattee.git
synced 2024-12-24 22:43:41 +00:00
18 lines
604 B
Swift
18 lines
604 B
Swift
|
import Foundation
|
||
|
import UIKit
|
||
|
|
||
|
final class AppDelegate: UIResponder, UIApplicationDelegate {
|
||
|
var orientationLock = UIInterfaceOrientationMask.all
|
||
|
|
||
|
private(set) static var instance: AppDelegate!
|
||
|
|
||
|
func application(_: UIApplication, supportedInterfaceOrientationsFor _: UIWindow?) -> UIInterfaceOrientationMask {
|
||
|
orientationLock
|
||
|
}
|
||
|
|
||
|
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { // swiftlint:disable:this discouraged_optional_collection
|
||
|
AppDelegate.instance = self
|
||
|
return true
|
||
|
}
|
||
|
}
|