Closed bcleton closed 2 years ago
Thanks @bcleton for your contribution to Vitamin iOS! Could you give us more information about the issue, please? Your gif is the issue that you encounter? Can we replicate it in the showcase app? To approve your fix.
Yes the gif is the issue i encounter. You can see the animation of the icon (left to right) when i focus the second VitaminTextField. To replicate the issue, i'm not sure but i think you need to have this kind of structure inside a storyboard (i am adding the VitaminTextFIeld directly inside the Storyboard). All the TextFIelds are inside the StackView "FIelds".
You then need to set vitaminTextField.activeOnEditing = true
. This bug is quite hard to reproduce and doesn't happen every time you focus on a VitaminTextField. You have to do severals tries.
I found the fix on this stackoverflow: https://stackoverflow.com/questions/18853972/how-to-stop-the-animation-of-uitextfield-rightview
@bcleton Thanks, for the details.
I let someone else check the pull request and I let you sign our Contributor License Agreement (see CLAassistant message) to merge this PR.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Changes description
We need to set the rightView frame when updating the icon to prevent animation from happening.
Checklist
Does this introduce a breaking change?
Screenshots
iPhone