mirror of
https://github.com/insidegui/VirtualBuddy.git
synced 2026-12-02 00:39:46 +08:00
* 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
18 lines
381 B
Swift
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
|
|
}
|
|
}
|