Skip to main content

ListChange

This enum describes the changes of the given collections of items.

public enum ListChange<Item> 

Inheritance

CustomStringConvertible

Enumeration Cases

insert

A new item was inserted on the given index path.

case insert(_ item: Item, index: IndexPath)

move

An item was moved from fromIndex to toIndex. Moving an item also automatically mean you should reload its UI.

case move(_ item: Item, fromIndex: IndexPath, toIndex: IndexPath)

update

An item was updated at the given index. An update change is also automatically generated by moving an item.

case update(_ item: Item, index: IndexPath)

remove

An item was removed from the given index.

case remove(_ item: Item, index: IndexPath)

Properties

description

Returns pretty ListChange description

public var description: String 

Did you find this page helpful?