Contents

index(of:)

Returns the index of the specified item.

Declaration

func index(of item: any CPListTemplateItem) -> Int

Parameters

  • item:

    The item to find in the section.

Return Value

The item’s index in the section, or NSNotFound if the section doesn’t contain the item.

See Also

Getting Items