Files
VirtualBuddy/VirtualUI/Source/Components/LiquidGlassCompat/LiquidGlassEnvironment.swift
Guilherme Rambo e19a74866c Liquid glass adoption (#677)
* Raise deployment target to macOS 14, bump version

* Integrate Liquid Glass compatibility components

* Fix onChange(of:) deprecation warnings

* Update project settings

* Improve styling of setup and configuration UI components

* Fix fatal error in VMSavedStatesController.preview

* Tweak session UI

* Do not use prominent button style in VM configuration sheet so it matches overall setup wizard style

* Fix incorrectly sized buttons in grouped lists
2026-05-22 09:47:01 -03:00

18 lines
381 B
Swift

import SwiftUI
public extension EnvironmentValues {
#if DEBUG
@Entry var preview_overrideLiquidGlassSupported: Bool? = nil
#endif
var isLiquidGlassSupported: Bool {
guard #available(macOS 26.0, *) else { return false }
#if DEBUG
return preview_overrideLiquidGlassSupported ?? true
#else
return true
#endif
}
}