Skip to content

Instantly share code, notes, and snippets.

View RogyMD's full-sized avatar
🤠
On an endless journey

Igor RogyMD

🤠
On an endless journey
View GitHub Profile
@RogyMD
RogyMD / View+GlassEffect.swift
Last active September 12, 2025 22:32
A SwiftUI.View extension to apply glass effect on a view when it's available.
import SwiftUI
extension View {
@ViewBuilder
public func glassEffect(
isEnabled: Bool = true,
isInteractive: Bool = false,
isClear: Bool = true,
tint: Color? = nil,
in shape: some Shape = Circle(),