mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-26 05:18:31 -04:00
global extension code purge
This commit is contained in:
parent
72e22c1ff2
commit
db6a739f5f
@ -13,7 +13,9 @@ class Controllers {
|
||||
// MARK: - Main
|
||||
|
||||
class var main: MainController {
|
||||
return (UIApplication.appDelegate.window?.rootViewController as! UINavigationController).topViewController as! MainController
|
||||
let appDelegate = UIApplication.shared.delegate as! AppDelegate
|
||||
let nav = appDelegate.window?.rootViewController as! UINavigationController
|
||||
return nav.topViewController as! MainController
|
||||
}
|
||||
|
||||
// MARK: - Bookmark
|
||||
|
@ -49,7 +49,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.3350</string>
|
||||
<string>1.8.3357</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.3350</string>
|
||||
<string>1.8.3357</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionMainStoryboard</key>
|
||||
|
@ -7,28 +7,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
#if os(iOS) || os(watchOS) || os(tvOS)
|
||||
import UIKit
|
||||
#elseif os(OSX)
|
||||
import AppKit
|
||||
#endif
|
||||
|
||||
// MARK: - App Delegate Accessor
|
||||
|
||||
#if os(iOS) || os(watchOS) || os(tvOS)
|
||||
extension UIApplication {
|
||||
class var appDelegate: AppDelegate {
|
||||
return UIApplication.shared.delegate as! AppDelegate
|
||||
}
|
||||
}
|
||||
#elseif os(OSX)
|
||||
extension NSApplication {
|
||||
class var appDelegate: AppDelegate {
|
||||
return NSApplication.sharedApplication().delegate as! AppDelegate
|
||||
}
|
||||
}
|
||||
#endif
|
||||
import UIKit
|
||||
|
||||
extension Locale {
|
||||
static var preferredLangCodes: [String] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user