Customise
Last Updated - Platform 23.0.0 - SDK 18.0.0Overview
The view contains ImageCarouselWidget
which is wrapped in a SectionView
out of the box.
Customise the Home Image Carousel View
Customise the HomeImageCarouselView
via subclassing.
- Create a new file for your widget in
Sources/Home/Views
. - 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) }}
- Inject your custom view.
// Inject the widget in your AppModule.Container.shared.views.homeImageCarouselView.replace { CustomHomeImageCarouselView() }