Circle Page Control - admiral-team/admiralui-ios GitHub Wiki
Class
Circle Page Control - An element with a button and a circular indicator that shows the number of pages and makes it possible to navigate to the next page.
Declaration
public class CirclePageControl: UIView, AnyAppThemable
Overview
Circle PageControl may be needed to navigate to the next page of the view, for example by Onbording. Depending on the number of travelers, the circular indicator will be filled with color.
Live example
CirclePageControl
Configure a Configuration a Circle PageControl with duration animation filling circular indicator
let pageControl = CirclePageControl()
pageControl.duration = 0.3
pageControl.currentPage = 0
pageControl.totalPages = 5
CirclePageControlDelegate
For handling tap to center button and track change number of page, you need set delegate.
pageControl.delegate = self
The delegate must adopt the protocol CirclePageControlDelegate
.
CirclePageControlDelegate implements two methods:
func didTapCenterButton()
func didChangePage(page: Int)
Contribution
You can help us to find bugs or ask us to add features.
- To start
issue
please use ready-made templates. - To make changes to the repository, you need to create a
fork
of the project, make changes to the code and create apull request
in our project. You can read more about this in the Github documentation.