1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 14:20:32 +05:30
yattee/iOS/AppDelegate.swift

21 lines
692 B
Swift
Raw Normal View History

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
2022-05-21 01:23:17 +05:30
Self.instance = self
2022-06-22 03:48:16 +05:30
#if os(iOS)
UIViewController.swizzleHomeIndicatorProperty()
#endif
return true
}
}