Instance Method

moveItem(at:to:)

Moves an item from one index to another in the scrubber.

Declaration

func moveItem(at oldIndex: Int, to newIndex: Int)

Parameters

oldIndex

The index of the item that you want to move.

newIndex

The index of the item's new location.

See Also

Inserting, Moving, and Deleting Items

func insertItems(at: IndexSet)

Inserts new items at the specified indexes into the scrubber.

func removeItems(at: IndexSet)

Removes the items at the specified indexes from the scrubber.