kiwicom / orbit-swiftui

Kiwi.com Orbit design system library
MIT License
128 stars 21 forks source link

Fix `redacted` for `UIViewRepresentable` views #788

Closed sjavora closed 5 months ago

sjavora commented 5 months ago

All SwiftUI components already worked with redacted(...). The problem were those backed by UIKit - text would just show up. Fixed by setting the text to clear color if redaction is detected. The table illustrates most of the fixes.

unredacted redacted before fix redacted after fix
unredacted redacted_before redacted_after

Closes #787.