CarouselViewDelegate
public protocol CarouselViewDelegate : AnyObject
A set of functions implemented by the delegate to be notified when the carousel responds to user interactions.
-
Notifies the delegate that a given carousel’s specific index was selected.
Declaration
Swift
func carouselView(_ view: CarouselView, didSelect item: CarouselItem, at index: Int)
Parameters
view
The carousel view which contains the item that was just selected.
item
The carousel item which was just selected.
index
The index at which the carousel item was selected.