Contents

init(offset:length:)

Creates a range for a text selection that also specifies a direction.

Declaration

init(offset: Int, length: Int)

Discussion

The sign of the length argument determines the selection’s direction from the offset argument.

See Also

Creating a directional text range