DataModifying
public protocol DataModifying
Undocumented
-
Moves item from sourceIndexPath to destinationIndexPath
Declaration
Swift
func moveItemAt(sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath, updateView: Bool)
Parameters
sourceIndexPath
Source’s IndexPath
destinationIndexPath
Destination’s IndexPath
updateView
determines if the view should be updated. Pass
false
if someone else take care of updating the change into the view -
Checks wethere item at an indexPath can be moved
Declaration
Swift
func canMoveItem(at indexPath: IndexPath) -> Bool
Parameters
indexPath
the indexPath to check for if it can be moved
Return Value
if the item can be moved
-
Deleted item at a given indexPath
Declaration
Swift
func deleteItem(at indexPath: IndexPath)
-
Inserts an element at given indexPath
Declaration
Swift
func insertItem(at indexPath: IndexPath)
-
Checks wethere item at an indexPath can be edited
Declaration
Swift
func canEditItem(at indexPath: IndexPath) -> Bool
Parameters
indexPath
the indexPath to check for if it can be edited
Return Value
if the item can be edited