Instance Method

compare(_:)

Indicates the depth-first traversal order of the receiving index path and another index path.

Declaration

func compare(_ otherObject: IndexPath) -> ComparisonResult

Parameters

indexPath

Index path to compare.

This value must not be nil. If the value is nil, the behavior is undefined.

Return Value

The depth-first traversal ordering of the receiving index path and indexPath.