ViewModelMapping

  • Registers closure to be executed, when UICollectionViewDataSource.collectionView(_:canMoveItemAt:) method is called.

    Declaration

    Swift

    open func canMove(_ closure: @escaping (View, Model, IndexPath) -> Bool)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:didSelectItemAt:) method is called.

    Declaration

    Swift

    open func didSelect(_ closure: @escaping (View, Model, IndexPath) -> Void)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:shouldSelectItemAt:) method is called.

    Declaration

    Swift

    open func shouldSelect(_ closure: @escaping (View, Model, IndexPath) -> Bool)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:shouldDeselectItemAt:) method is called.

    Declaration

    Swift

    open func shouldDeselect(_ closure: @escaping (View, Model, IndexPath) -> Bool)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:didDeselectItemAt:) method is called.

    Declaration

    Swift

    open func didDeselect(_ closure: @escaping (View, Model, IndexPath) -> Void)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:shouldHighlightItemAt:) method is called.

    Declaration

    Swift

    open func shouldHighlight(_ closure: @escaping (View, Model, IndexPath) -> Bool)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:didHighlightItemAt:) method is called.

    Declaration

    Swift

    open func didHighlight(_ closure: @escaping (View, Model, IndexPath) -> Void)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:didUnhighlightItemAt:) method is called.

    Declaration

    Swift

    open func didUnhighlight(_ closure: @escaping (View, Model, IndexPath) -> Void)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:willDisplayCell:forItemAt:) method is called.

    Declaration

    Swift

    open func willDisplay(_ closure: @escaping (View, Model, IndexPath) -> Void)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:didEndDisplaying:forItemAt:) method is called.

    Declaration

    Swift

    open func didEndDisplaying(_ closure: @escaping (View, Model, IndexPath) -> Void)
  • Registers closure to be executed, when UICollectionViewDelegate.collectionView(_:canFocusItemAt:) method is called.

    Declaration

    Swift

    open func canFocus(_ closure: @escaping (View, Model, IndexPath) -> Bool)
  • Registers closure to be executed when UICollectionViewDelegate.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 in UICollectionViewDelegateFlowLayout.collectionView(_:sizeForItemAt:) method.

    Declaration

    Swift

    open func sizeForCell(_ closure: @escaping (Model, IndexPath) -> CGSize)
  • Registers closure to be executed when UICollectionViewDelegate.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, when UICollectionViewDelegate.collectionView(_:willDisplaySupplementaryView:forElementKind:at:) method is called.

    Declaration

    Swift

    open func willDisplaySupplementaryView(_ closure: @escaping (View, Model, IndexPath) -> Void)
  • Registers closure to be executed, when UICollectionViewDelegate.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 in UICollectionViewDelegateFlowLayout.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 in UICollectionViewDelegateFlowLayout.collectionView(_:layout:referenceSizeForFooterViewInSection:) method, when it’s called.

    Declaration

    Swift

    open func referenceSizeForFooterView(_ closure: @escaping (Model, IndexPath) -> CGSize)
  • Registers closure to be executed when UICollectionViewDragDelegate.collectionView(_:itemsForBeginning:at:) method is called.

    Declaration

    Swift

    open func itemsForBeginningDragSession(_ closure: @escaping (UIDragSession, View, Model, IndexPath) -> [UIDragItem])
  • Registers closure to be executed when UICollectionViewDragDelegate.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 when UICollectionViewDragDelegate.collectionView(_:dragPreviewParametersForRowAt:) method is called.

    Declaration

    Swift

    open func dragPreviewParameters(_ closure: @escaping (View, Model, IndexPath) -> UIDragPreviewParameters?)