-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow configuration of showing country flags (#1556)
## Summary <new> In the country/region picker for the payment form, you can now choose if the images of flags are shown. **Components** ``` let cardConfiguration = CardComponent.Configuration() cardConfiguration.style.addressStyle.showCountryFlags = true/false let cardComponent = CardComponent(paymentMethod: paymentMethod, context: context, configuration: cardConfiguration) ``` **Drop-In** ``` var style = DropInComponent.Style() style.formComponent.addressStyle.showCountryFlags = cardSettings.showsCountryFlags let dropInConfiguration = DropInComponent.Configuration(style: style) let dropInComponent = DropInComponent(paymentMethods: paymentMethods, context: context, configuration: dropInConfiguration) ``` </new> ### Also - Adds a configuration to show/hide the flags in the Demo app - Adds tests for flag visibility | List (showing flags) | Settings (enabled) | | --------- | --------- | | <img src="https://github.com/Adyen/adyen-ios/assets/4838877/a7c3c398-097f-4041-adcc-838a73da4331" width="200px"> | <img src="https://github.com/Adyen/adyen-ios/assets/4838877/665e09e0-7366-429f-b583-5fcc39b8098a" width="200px"> | | List (no flags) | Settings (disabled) | | --------- | --------- | | <img src="https://github.com/Adyen/adyen-ios/assets/4838877/2098ee8a-e817-4b13-b9b0-198d67cd44d0" width="200px"> | <img src="https://github.com/Adyen/adyen-ios/assets/4838877/57f0fb6c-85a8-4263-b2ec-a960f95a0c76" width="200px"> |
- Loading branch information
Showing
9 changed files
with
131 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters