shouldUseNativeGlass property
bool
get
shouldUseNativeGlass
Checks if Liquid Glass effects should use native platform views.
Returns true only for iOS 26+ or macOS 26+.
This will auto-initialize if not already initialized.
Implementation
static bool get shouldUseNativeGlass {
if (!_isInitialized) {
// Auto-initialize synchronously returns false for safety
// The actual async initialization should happen in main()
return false;
}
return isIOS26OrLater || isMacOS26OrLater;
}