HorizontalSelectionViewDelegate
@objc
public protocol HorizontalSelectionViewDelegate : AnyObject
Undocumented
-
Tells the delegate that the item at the specified position was selected.
Declaration
Swift
@objc optional func horizontalSelectionView(_ horizontalSelectionView: HorizontalSelectionView, didSelectItemAtPosition position: Int)
Parameters
horizontalSelectionView
the horizontal view.
position
the position of the item.
-
Asks the delegate for the size of the specified item’s cell.
Declaration
Swift
@objc optional func horizontalSelectionView(_ horizontalSelectionView: HorizontalSelectionView, sizeForItemAtPosition position: Int) -> CGSize
Parameters
horizontalSelectionView
the horizontal view.
position
the position of the item.
Return Value
the size of the item cell.
-
Asks the delegate for the spacing between items.
Declaration
Swift
@objc optional func spacingBetweenItems(in horizontalSelectionView: HorizontalSelectionView) -> CGFloat
Parameters
horizontalSelectionView
the horizontal view.
Return Value
the spacing value.