mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(iOS): check for iOS 13 APIs (#8093)
This commit is contained in:
@@ -89,7 +89,7 @@ class CADisplayLinkTarget extends NSObject {
|
||||
}
|
||||
|
||||
class IOSApplication implements IOSApplicationDefinition {
|
||||
private _backgroundColor = majorVersion <= 12 ? UIColor.whiteColor : UIColor.systemBackgroundColor;
|
||||
private _backgroundColor = (majorVersion <= 12 || !UIColor.systemBackgroundColor) ? UIColor.whiteColor : UIColor.systemBackgroundColor;
|
||||
private _delegate: typeof UIApplicationDelegate;
|
||||
private _window: UIWindow;
|
||||
private _observers: Array<NotificationObserver>;
|
||||
@@ -121,7 +121,6 @@ class IOSApplication implements IOSApplicationDefinition {
|
||||
}
|
||||
|
||||
get systemAppearance(): "light" | "dark" | null {
|
||||
|
||||
// userInterfaceStyle is available on UITraitCollection since iOS 12.
|
||||
if (majorVersion <= 11) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user