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:
@@ -385,7 +385,7 @@ export function test_page_backgroundColor() {
|
||||
helper.navigate(factory);
|
||||
|
||||
if (isIOS) {
|
||||
const backgroundColor = ios.MajorVersion <= 12 ? UIColor.whiteColor : UIColor.systemBackgroundColor;
|
||||
const backgroundColor = (ios.MajorVersion <= 12 || !UIColor.systemBackgroundColor) ? UIColor.whiteColor : UIColor.systemBackgroundColor;
|
||||
TKUnit.assertEqual(page.nativeView.backgroundColor, backgroundColor, "page backgroundColor is wrong");
|
||||
} else {
|
||||
const whiteColor = new Color("white");
|
||||
|
||||
Reference in New Issue
Block a user