EmergeTools / Pow

Delightful SwiftUI effects for your app
https://movingparts.io/pow
MIT License
3.64k stars 153 forks source link

Global option to disable POW effects when voiceover is activated #52

Open iTarek opened 11 months ago

iTarek commented 11 months ago

POW is not necessarily suitable for users who utilize voiceover. It can also damage the voiceover and occasionally create an excessively large accessibility rectangle with effects like (.spray, glow, etc..). I would like to propose a global option to disable POW effects when voiceover is activated. At present, I have to do this manually.

                            .if(!UIAccessibility.isVoiceOverRunning) {
                                $0.changeEffect(
                                    .spray(origin: UnitPoint(x: 0.25, y: 0.5)) {
                                        Image(systemName: isFavorite ? "heart.fill" : "xmark")
                                            .foregroundStyle(isFavorite ? .red : .gray)
                                    }, value: itemsModel.favoriteItems.contains(item))
                            }