Skip to content

Conversation

@Snowy1803
Copy link
Contributor

In some locales where the decimal separator isn't a dot, the animation speed editor doesn't work with decimal value.

The UIKeyboardTypeDecimalPad keyboard has a comma key in French, but it is then parsed expecting a dot for the decimal.

I changed it to use NSNumberFormatter, which is locale-aware, and correctly expects a comma as a decimal separator in such languages.

@swipip
Copy link

swipip commented Dec 1, 2022

Well done

@NSExceptional
Copy link
Collaborator

Awesome! Can you change the second line to use property syntax for the setter? Then I can merge this.

Thank you so much!

@Snowy1803
Copy link
Contributor Author

Can we get this merged?

@NSExceptional
Copy link
Collaborator

Idk why but the GitHub all has stopped sending me push notifications, I'm sorry!

@NSExceptional NSExceptional merged commit 1bbf8db into FLEXTool:master Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants