Skip to content

Commit 438790b

Browse files
committed
Fix visionOS
1 parent e0871a1 commit 438790b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SwiftGlass/GlassBackgroundModifier.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public struct GlassBackgroundModifier: ViewModifier {
8383
.tint(color)
8484
} else {
8585
content
86+
#if !os(visionOS)
8687
.glassEffect(.regular.tint(color.opacity(colorOpacity)).interactive(), in: .rect(cornerRadius: radius))
88+
#endif
8789
.cornerRadius(radius)
8890
.shadow(color: shadowColor.opacity(shadowOpacity), radius: shadowRadius, x: shadowX, y: shadowY)
8991
}

0 commit comments

Comments
 (0)