From cc014eba4b65f689cadc281ad925de5607f2adc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robb=20B=C3=B6hnke?= <212465+robb@users.noreply.github.com> Date: Sat, 16 Dec 2023 05:55:55 +0100 Subject: [PATCH] Fix glow preventing hit tests (#53) --- Sources/Pow/Effects/GlowEffect.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Pow/Effects/GlowEffect.swift b/Sources/Pow/Effects/GlowEffect.swift index 14bed01..38cb5e9 100644 --- a/Sources/Pow/Effects/GlowEffect.swift +++ b/Sources/Pow/Effects/GlowEffect.swift @@ -76,6 +76,7 @@ internal struct GlowModifier: ViewModifier, Animatable { .opacity(ramp(amount)) .blendMode(.sourceAtop) .brightness(ramp(abs(amount)) * 0.1) + .allowsHitTesting(false) } .compositingGroup() .shadow(color: color.opacity(shadowOpacity / 1.2), radius: amount * radius / 4.0, x: 0, y: 0)