There was an error while loading. Please reload this page.
1 parent 4033497 commit 3d3a3d2Copy full SHA for 3d3a3d2
1 file changed
AppPackage/Sources/AppComponents/ViewModifiers.swift
@@ -12,6 +12,10 @@ public struct PrivacyMaskModifier: ViewModifier {
12
13
public func body(content: Content) -> some View {
14
content
15
+ // Asymmetric on purpose: apply the mask instantly (`blur != 0`) but ease it out.
16
+ // The blur is written on `.inactive`, exactly when iOS grabs the App Switcher
17
+ // snapshot — a ramp-in would let that snapshot capture unblurred content. Only the
18
+ // return-to-active fade (`blur == 0`) is animated, and Reduce Motion skips both.
19
.animation(reduceMotion || blur != 0 ? nil : .linear(duration: 0.1)) {
20
$0.blur(radius: blur)
21
}
0 commit comments