I have a UITextField that I\'m forcing formatting on by modifying the text inside the change notification handler. This works great (once I solved the reentranc
UITextField
Useful to position at index (Swift 3)
private func setCursorPosition(input: UITextField, position: Int) { let position = input.position(from: input.beginningOfDocument, offset: position)! input.selectedTextRange = input.textRange(from: position, to: position) }