offset(from:to:)
Returns the distance between two positions in the text view’s text.
Declaration
func offset(from: UITextPosition, to toPosition: UITextPosition) -> IntReturns the distance between two positions in the text view’s text.
func offset(from: UITextPosition, to toPosition: UITextPosition) -> Int