How can I convert NSRange to Range in Swift?
NSRange
Range
I want to use the following UITextFieldDelegate method:
UITextFieldDelegate
The Swift 3.0 beta official documentation has provided its standard solution for this situation under the title String.UTF16View in section UTF16View Elements Match NSString Characters title