CarouselViewDataSource
public protocol CarouselViewDataSource : AnyObject
A set of functions that an object adopts to manage data and provide items for a carousel view.
-
Returns a list of items to show in the carousel view.
Declaration
Swift
func itemsForCarouselView(_ view: CarouselView) -> [CarouselItem]
Parameters
view
The carousel view which will show the list of items returned.
Return Value
A list of items to show in the carousel view.