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.
Creates a range for a text selection that also specifies a direction.
init(offset: Int, length: Int)The sign of the length argument determines the selection’s direction from the offset argument.