Page indicator

The page indicator component is used to indicate a stack of pages or images in a group and highlight the current selected page or images.

Backpack/Page Indicator

Cocoapods class reference view on Github

Default

Day Night

Usage

The BPKPageIndicator is a component that shows the current page and the total number of pages.

You can set a variant, currentIndex and totalIndicators to configure the component.


                                                
                                                let pageIndicator = BPKPageIndicator(
                                                    variant: .overImage,
                                                    currentIndex: 1,
                                                    totalIndicators: 3
                                                )

You can also set the currentIndex and totalIndicators properties to update the component.


                                                
                                                pageIndicator.totalIndicators = 5
                                                pageIndicator.currentIndex = 2