level(forItem:)
Returns the indentation level for a given item.
Declaration
func level(forItem item: Any?) -> IntParameters
- item:
An item in the receiver.
Return Value
The indentation level for item. If item is nil (which is the root item), returns –1.
Discussion
The levels are zero-based—that is, the first level of displayed items is level 0.