checkout / frames-ios

Frames iOS: making native card payments simple

Home Page:https://www.checkout.com/docs/integrate/sdks/ios-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Localisation UI issue in TextField Alignment

Dev-iOS-Appbirds opened this issue · comments

Unable to change text alignments of Card Number, Expiry Date & Security Code TextField.

simulator_screenshot_D9DEBFA4-AAE0-4A66-969B-B9FE0DB73821
simulator_screenshot_09B121CC-A5A7-40B9-A5B6-AC88BB9799D1

I'm using the below ThemeDemo.swift file to create the frame style.
ThemeDemo.swift.zip

Hi @Dev-iOS-Appbirds,

I can see that the current API would enable the customisability of that behaviour. Unfortunately the TextFields do not currently use that property.

We have 2 options for this, clean out the external API or extend functionality.

It would be nice to understand if possible, in your use case, would this be an important behaviour to enable the experience your team wants for your users?

hello @alex-ioja-yang-cko

In the current source code is it possible to change the alignment of TextField or you will have to make any changes in your library for this?

@Dev-iOS-Appbirds this is what we need to decide with Product & Engineering.

As it stands, changing the text alignment in TextField was not planned to be supported and the existence of that property is a symptom of a different code level behaviour that should be improved.

It may help our Product team to make a decision if there are genuine use cases where that property is actually required and improves experience for our merchants users. As it is, TextFields follow the default OS behaviour (left aligned standard and right aligned when RTL - like when using Arabic).

hello @alex-ioja-yang-cko
Yes if you could please add this feature as we have users who are going to use the application and we want our user experience to improve and as you can see the issue in the above screenshot attached. Let me know if it is possible that there is anything else i can change at my end to solve this problem?

Hey @Dev-iOS-Appbirds, thanks for raising this feedback!

As Alex mentioned, we have followed standard iOS behaviour for left-aligned for languages like English, French etc., and then right-aligned for Arabic.

However, we will keep this feature in mind for a future release, but I don't have a concrete date right now on when we might release a feature to change text alignment within fields.

Hi @Dev-iOS-Appbirds,

Closing this stale issue since the behaviour I'm currently experiencing after changing the simulator language to Arabic is as above.

Feel free to re-open, ask more or create a new issue if you are still experiencing any issues 🙂