An extension on UITextView
that adds arrow keys to the keyboard which can be used to move the cursor left and right.
Include UITextViewCursorKeysExtension.swift
in your project. Call setupInputAccessoryView()
on the UITextView
instance which you want to add the keys to.