Instance Method

formIndex(before:)

Modifies the given index to refer to the item before the one it currently refers to.

Declaration

func formIndex(before i: inout IndexSet.Index)

Relationships

See Also

Manipulating Indexes

var startIndex: IndexSet.Index

The beginning index in the set.

var endIndex: IndexSet.Index

The ending index in the set.

func index(after: IndexSet.Index) -> IndexSet.Index

Returns the index that follows the given index in the set.

func index(before: IndexSet.Index) -> IndexSet.Index

Returns the index that precedes the given index in the set.

func formIndex(after: inout IndexSet.Index)

Modifies the given index to refer to the item after the one it currently refers to.

func indexRange(in: Range<IndexSet.Element>) -> Range<IndexSet.Index>

Return a Range<IndexSet.Index> which can be used to subscript the index set.