What is the Swift constructor for the code below?
NSMakeRange(0, textfield.text!.characters.count)
The modern Swift constructor for this is NSRange(location:length:)
.
NSRange(location: 0, length: textfield.text!.characters.count)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With