Customise

Last Updated - Platform 23.0.0 - SDK 18.0.0

Overview

The view contains ImageCarouselWidget which is wrapped in a SectionView out of the box.

Customise the HomeImageCarouselView via subclassing.

  1. Create a new file for your widget in Sources/Home/Views.
  2. Subclass the PoqHomeImageCarouselView and customise.
class CustomHomeImageCarouselView: PoqHomeImageCarouselView {
override func addSubviews() {
addSubview(stackView)
// Adds an image carousel not wrapped in a SectionView so no title is displayed above the carousel.
stackView.addArrangedSubview(imageCarousel)
}
}
  1. Inject your custom view.
// Inject the widget in your AppModule.
Container.shared.views.homeImageCarouselView.replace { CustomHomeImageCarouselView() }