How to add custom image to pageIndicator in Swift?

I am currently developing an application with UIPageViewController

. I want to add a custom icon to one of the page indicator indicators, so it works like an indexIndicator on iOS 9.

For better understanding, here's an image:

Thats how it should look / work like

It must determine which view is currently being displayed and highlight the corresponding dot or image. Does any of you know how we can do this in Swift? Is this possible with the standard pageIndicator in UIKit? If you have any questions, ask them.

+3


source to share


2 answers


I think there is a GitHub repository that does exactly that. https://github.com/Spaceman-Labs/SMPageControl



+2


source


As I know, it is not possible to implement such a customization with your own page control.



Take a look at the open source libraries FXPageControl and SwipeView. Combine both of them to implement paging stuff with custom page control.

0


source







All Articles