Platform-specific behavior for SwiftGlass
mainSwiftGlass adapts its implementation based on the target platform:
- visionOS: Uses the native
.glassBackgroundEffect()to ensure optimal rendering and system integration. - Other Platforms (iOS, macOS, watchOS, tvOS, iPadOS): Achieves a similar effect through a custom implementation combining materials, gradients, and shadows.