ViewModelMapping
-
Registers
closure
to be executed, whenUICollectionViewDataSource.collectionView(_:canMoveItemAt:)
method is called.Declaration
Swift
open func canMove(_ closure: @escaping (View, Model, IndexPath) -> Bool)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:didSelectItemAt:)
method is called.Declaration
Swift
open func didSelect(_ closure: @escaping (View, Model, IndexPath) -> Void)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:shouldSelectItemAt:)
method is called.Declaration
Swift
open func shouldSelect(_ closure: @escaping (View, Model, IndexPath) -> Bool)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:shouldDeselectItemAt:)
method is called.Declaration
Swift
open func shouldDeselect(_ closure: @escaping (View, Model, IndexPath) -> Bool)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:didDeselectItemAt:)
method is called.Declaration
Swift
open func didDeselect(_ closure: @escaping (View, Model, IndexPath) -> Void)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:shouldHighlightItemAt:)
method is called.Declaration
Swift
open func shouldHighlight(_ closure: @escaping (View, Model, IndexPath) -> Bool)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:didHighlightItemAt:)
method is called.Declaration
Swift
open func didHighlight(_ closure: @escaping (View, Model, IndexPath) -> Void)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:didUnhighlightItemAt:)
method is called.Declaration
Swift
open func didUnhighlight(_ closure: @escaping (View, Model, IndexPath) -> Void)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:willDisplayCell:forItemAt:)
method is called.Declaration
Swift
open func willDisplay(_ closure: @escaping (View, Model, IndexPath) -> Void)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:didEndDisplaying:forItemAt:)
method is called.Declaration
Swift
open func didEndDisplaying(_ closure: @escaping (View, Model, IndexPath) -> Void)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:canFocusItemAt:)
method is called.Declaration
Swift
open func canFocus(_ closure: @escaping (View, Model, IndexPath) -> Bool)
-
Registers
closure
to be executed whenUICollectionViewDelegate.targetIndexPathForMoveFromItemAt(_:toProposed:)
method is called.Declaration
Swift
open func targetIndexPathForMovingItem(_ closure: @escaping (IndexPath, View, Model, IndexPath) -> IndexPath)
-
Registers
closure
to be executed to determine cell size inUICollectionViewDelegateFlowLayout.collectionView(_:sizeForItemAt:)
method.Declaration
Swift
open func sizeForCell(_ closure: @escaping (Model, IndexPath) -> CGSize)
-
Registers
closure
to be executed whenUICollectionViewDelegate.collectionView(_:shouldSpringLoadItemAt:)
method is called.Declaration
Swift
open func shouldSpringLoad(_ closure: @escaping (UISpringLoadedInteractionContext, View, Model, IndexPath) -> Bool)
-
Undocumented
Declaration
Swift
open func shouldBeginMultipleSelectionInteraction(_ closure: @escaping (View, Model, IndexPath) -> Bool)
-
Undocumented
Declaration
Swift
open func didBeginMultipleSelectionInteraction(_ closure: @escaping (View, Model, IndexPath) -> Void)
-
Undocumented
Declaration
Swift
open func contextMenuConfiguration(_ closure: @escaping (CGPoint, View, Model, IndexPath) -> UIContextMenuConfiguration?)
-
Undocumented
Declaration
Swift
open func canEdit(_ closure: @escaping (Model, IndexPath) -> Bool)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:willDisplaySupplementaryView:forElementKind:at:)
method is called.Declaration
Swift
open func willDisplaySupplementaryView(_ closure: @escaping (View, Model, IndexPath) -> Void)
-
Registers
closure
to be executed, whenUICollectionViewDelegate.collectionView(_:didEndDisplayingSupplementaryView:forElementKind:at:)
method is called.Declaration
Swift
open func didEndDisplayingSupplementaryView(_ closure: @escaping (View, Model, IndexPath) -> Void)
-
Registers
closure
to be executed to determine header size inUICollectionViewDelegateFlowLayout.collectionView(_:layout:referenceSizeForHeaderViewInSection:)
method, when it’s called.Declaration
Swift
open func referenceSizeForHeaderView(_ closure: @escaping (Model, IndexPath) -> CGSize)
-
Registers
closure
to be executed to determine footer size inUICollectionViewDelegateFlowLayout.collectionView(_:layout:referenceSizeForFooterViewInSection:)
method, when it’s called.Declaration
Swift
open func referenceSizeForFooterView(_ closure: @escaping (Model, IndexPath) -> CGSize)
-
Registers
closure
to be executed whenUICollectionViewDragDelegate.collectionView(_:itemsForBeginning:at:)
method is called.Declaration
Swift
open func itemsForBeginningDragSession(_ closure: @escaping (UIDragSession, View, Model, IndexPath) -> [UIDragItem])
-
Registers
closure
to be executed whenUICollectionViewDragDelegate.collectionView(_:itemsForAddingTo:at:point:)
method is called.Declaration
Swift
open func itemsForAddingToDragSession(_ closure: @escaping (UIDragSession, CGPoint, View, Model, IndexPath) -> [UIDragItem])
-
Registers
closure
to be executed whenUICollectionViewDragDelegate.collectionView(_:dragPreviewParametersForRowAt:)
method is called.Declaration
Swift
open func dragPreviewParameters(_ closure: @escaping (View, Model, IndexPath) -> UIDragPreviewParameters?)