iOS26 UI adaption: host view navigation bar
This commit is contained in:
1 parent
4b56a44a47
commit
4a9e7ad2a1
3 files changed
+71
-43
No files matched your search
@@ -49,4 +49,14 @@ import Foundation
|
||||
@objc static func isIPad() -> Bool {
|
||||
return UIDevice.current.userInterfaceIdiom == .pad
|
||||
}
|
||||
|
||||
@objc static let liquidGlassEnabled: Bool = {
|
||||
if #available(iOS 26.0, tvOS 26.0, *) {
|
||||
let useLegacyUI = Bundle.main.object(forInfoDictionaryKey: "UIDesignRequiresCompatibility") as? Bool
|
||||
return useLegacyUI != true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}()
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user