import SwiftUI extension View { /// Prevents root `GeometryReader` views from painting an opaque system background on macOS. func clearHostingBackground() -> some View { background(Color.clear) } }