You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Backwards compatible wrapper of the iOS26+ .glassEffect modifier
18
+
/// - On iOS 26 / macOS 26 and newer: applies `glassEffect()`.
19
+
/// - On older OSes and unsupported platforms: applies a background with `.regularMaterial` and `shadow08`, with the exception of older macOS versions where no background is applied
20
+
/// - Parameters:
21
+
/// - interactive: Whether the glass effect should be interactive.
22
+
/// - tint: The tint color to apply to the glass effect.
23
+
/// - shape: The shape to apply the glass effect to.
24
+
/// - Returns: The modified view with the glass effect applied.
25
+
@ViewBuilderfunc fluentGlassEffect<T>(
26
+
interactive:Bool=false,
27
+
tint:Color?=nil,
28
+
in shape:T=Capsule()
29
+
)->someViewwhere T:Shape{
30
+
self.modifier(
31
+
FluentGlassEffectModifier(
32
+
interactive: interactive,
33
+
tint: tint,
34
+
shape: shape
35
+
)
36
+
)
37
+
}
16
38
}
17
39
18
40
/// ViewModifier that applies both shadows from a ShadowInfo
0 commit comments