DroppyOpticalGlassChrome

Pure-SwiftUI vector Liquid Glass chrome with zero CABackdropLayers, zero .glassEffect(), zero NSVisualEffectView, and zero blur passes.

@MainActor struct DroppyOpticalGlassChrome<S> where S : InsettableShape

Renders smoked translucent depth, a subtle top inner bevel highlight, and a directional 45-degree 0.75pt specular strokeBorder rim, honoring colorScheme, accessibilityReduceTransparency, and colorSchemeContrast == .increased. Safe inside masked scroll views, offscreen snapshots, and rasterized surfaces at 0.0ms WindowServer backdrop cost.

Initializers

init(shape:fill:isHovering:isPressed:isEnabled:colorScheme:)

@MainActor init(shape: S, fill: DroppyGlassControl.Fill = .veil, isHovering: Bool = false, isPressed: Bool = false, isEnabled: Bool = true, colorScheme: ColorScheme? = nil)

Properties

body

@MainActor var body: some View { get }

colorSchemeOverride

@MainActor var colorSchemeOverride: ColorScheme?

fill

@MainActor var fill: DroppyGlassControl.Fill

isEnabled

@MainActor var isEnabled: Bool

isHovering

@MainActor var isHovering: Bool

isPressed

@MainActor var isPressed: Bool

shape

@MainActor let shape: S