clear
The clear variant of glass.
Declaration
static var clear: Glass { get }Discussion
When using clear glass, ensure content remains legible by adding a dimming layer or other treatment beneath the glass.
For example, you could add a transparent black color beneath your glass to ensure content remains legible above the glass.
Label("Flag", systemImage: "flag.fill")
.padding()
.glassEffect(.clear)
.background(.black.opacity(0.3))