Great, thanks for feedback. What you will see is that this code does not work properly if you move the insertion point somewhere in the text. You need some extra code, using the content of range to handle properly. But that may be unneeded complication in your case. You should also take care of the locale: separators depend on local, as well as decimal point. Good continuation.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: