RevenueCat / purchases-ios

In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS.
https://www.revenuecat.com/
MIT License
2.22k stars 295 forks source link

[EXTERNAL] Hide decorative Paywall images from accessibility (#3886) via @shiftingsand #3892

Closed tonidero closed 2 months ago

tonidero commented 2 months ago

Description

Added .accessibilityHidden(true) to the two images in RemoteImage. I initially was hesitant to change RemoteImage itself, but went ahead and did so since it seems to be only used by the Paywall templates.

Contributed by @shiftingsand in #3886

RevenueCat-Danger-Bot commented 2 months ago
1 Message
:book: Size increase: 0.10 KB

Generated by :no_entry_sign: Danger

tonidero commented 2 months ago

Yeah, I agree the ideal is to allow adding this information in the dashboard so it can be set dynamically in the same origin as the image itself. However, we might take a bit longer to support this. I think this is a better compromise than what we have right now in the meantime.

I don't fully like the approach of adding the label as a parameter in the code, since it would mean:

cc @aboedo for a third opinion!

tonidero commented 2 months ago

As talked, we are going with this for now, and we can add support for backend driven labels later.