move(in:by:)
Moves the cursor in the specified directions by granularity, in response to different key combinations:
Declaration
func move(in direction: UITextStorageDirection, by granularity: UITextGranularity)Discussion
Option + left/right = word Option + up/down = paragraph Command + left/right = line Command + up/down = document