-
Notifications
You must be signed in to change notification settings - Fork 121
Description
At the moment, the different CardPresent modal views used through the card reader connection and payment flows are populated on runtime with different configurations and contents.
This presents some challenges, as modifying one of them generally requires multiple parts being affected, for example the usage of UIButton configuration as result of some UIButton properties deprecations with iOS15. This also causes that we use some components incorrectly in order to reuse the different Views, which derives in further problems down the road.
Migrating these to SwiftUI and setting their content up separately based on state, as well as using the UIButton.configuration API to handle state updates could be a good first step to make these simpler and easier to modify.
Related tasks:
- Restore
auxiliaryButtonImagefromCardPresentModalScanningForReader: RemoveauxiliaryButtonImagefromCardPresentModalScanningForReader#8333 - Move
attributtedTitlesto use markdown rendering when possible, supported in SwiftUI, so we can get rid of setting up complexNSAttributtedstrings when we need different styling on the same String