mirror of
https://github.com/EmergeTools/Pow.git
synced 2026-03-25 08:55:50 +00:00
Fix glow preventing hit tests (#53)
This commit is contained in:
parent
75b716d86a
commit
cc014eba4b
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue