Contents

extend(in:by:)

Moves the selection in the specified directions by granularity, in response to different key combinations:

Declaration

func extend(in direction: UITextStorageDirection, by granularity: UITextGranularity)

Discussion

Word = shift + option + left/right paragraph = shift + option + up/down line = shift + command + left/right document = shift + command + up/down

See Also

Extending the text section