DroppyGlassControlChrome

The Liquid Glass control as a modifier, so a style with its own sizing (the pill family, the disc) and a Menu label (which cannot take a ButtonStyle) draw the identical control.

@MainActor struct DroppyGlassControlChrome

The Liquid Glass control as a modifier, so a style with its own sizing (the pill family, the disc) and a Menu label (which cannot take a ButtonStyle) draw the identical control. Apply it to the sized, inked label; hover and press come from the caller.

Initializers

init(shape:fill:isHovering:isPressed:)

@MainActor init(shape: AnyShape, fill: DroppyGlassControl.Fill = .veil, isHovering: Bool = false, isPressed: Bool = false)

Creates the chrome.

Properties

fill

@MainActor var fill: DroppyGlassControl.Fill

isHovering

@MainActor var isHovering: Bool

isPressed

@MainActor var isPressed: Bool

shape

@MainActor let shape: AnyShape

Methods

body(content:)

@MainActor func body(content: Content) -> some View