iOS26 UI adaption: host view navigation bar

This commit is contained in:
True Zhuanjia committed 2026-03-07 10:08:17 +08:00
1 parent 4b56a44a47
commit 4a9e7ad2a1
3 files changed
+71 -43

No files matched your search

+10
View File
@@ -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
}
}()
}