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
viewThe carousel view which contains the item that was just selected.
itemThe carousel item which was just selected.
indexThe index at which the carousel item was selected.
CarouselViewDelegate Protocol Reference