Contents

offset(from:to:)

Returns the distance between two positions in the text view’s text.

Declaration

func offset(from: UITextPosition, to toPosition: UITextPosition) -> Int

Mentioned in