Contents

isEqual(_:)

Returns true for locations representing the same document position.

Declaration

func isEqual(_ location: Any?) -> Bool

Discussion

Must not depend on auxiliary state such as affinity or visual-edge preference. Locations from different data source methods are compared using isEqual: and must agree when they refer to the same position.