mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(ios): iosGlassEffect property
This commit is contained in:
@@ -1 +1,4 @@
|
||||
export const SDK_VERSION = android.os.Build.VERSION.SDK_INT;
|
||||
export function supportsGlass(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
1
packages/core/utils/constants.d.ts
vendored
1
packages/core/utils/constants.d.ts
vendored
@@ -1 +1,2 @@
|
||||
export const SDK_VERSION: number;
|
||||
export function supportsGlass(): boolean;
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
export const SDK_VERSION = parseFloat(UIDevice.currentDevice.systemVersion);
|
||||
export function supportsGlass(): boolean {
|
||||
return __APPLE__ && SDK_VERSION >= 26;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user