Instance Method

performUsingPresentationValues(_:)

Execute actions on the current object using index paths that are relative to the presentation layer of that object.

Required.

Declaration

func performUsingPresentationValues(_ actionsToTranslate: () -> Void)

Parameters

actionsToTranslate

A block containing the code you want to execute. Any index paths you specify in this block must be relative to the presentation layer of the object (instead of relative to its data source object). This block takes no parameters and has no return value.

Discussion

Use this method to perform actions on the current object, when the index paths for those actions are relative to the object's presentation layer. For example, you might call this method to modify a table view or collection view that has uncommitted updates.