compare(_:to:)
Returns how one text position compares to another text position.
Declaration
func compare(_ position: UITextPosition, to other: UITextPosition) -> ComparisonResultParameters
- position:
A custom object that represents a location within a document.
- other:
A custom object that represents another location within a document.
Return Value
A value that indicates whether the two text positions are identical or whether one is before the other.