Image Carousel Item View

Last Updated - Platform 23.0.0 - SDK 18.0.0

The ImageCarouselItemView is essentially the ImageCarouselItemCell presented by the ImageCarouselDataSource. However, they have been separated to make it easy to modify the view using Containers rather than subclass the data source and cell.

Container.shared.views.imageCarouselItemView = {

The PoqImageCarouselItemView (default) variation of this view:

  • Uses ImageCarouselContentItemViewData.
  • Presents the image(150x150px) and title(1 line).
  • Supports Skeletonable to present a nice loading state.

View Data Mapper

The ImageCarouselContentItemViewDataMapper is the mapper used to map from ImageCarouselContentItem to the ImageCarouselContentItemViewData to present.

Container.shared.mappers.imageCarouselContentItemViewDataMapper = {

Data Mapper

At the data layer, the ImageCarouselContentItemMapper handles mapping from PoqHomeBannerCarouselItem to ImageCarouselContentItem.

Container.shared.mappers.imageCarouselContentItemMapper = {