AdmiralSwiftUI Controls CirclePageControlStyle - admiral-team/admiralui-ios GitHub Wiki

Overview

The style for creating the CirclePageControl Button. To configure the current button style for a view hierarchy, use the buttonStyle(_:) modifier. You can create buttons in two styles: (default, additional) by specifying style in init CirclePageControlStyle:.

Code

Button(action: {}, label: {})
     .buttonStyle(CirclePageControlStyle(totalPages: 7, style: .additional))

You can create a CirclePageControl by specifying the following parameters in the initializer:

Initializer parameters:
 - step: Binding<Int> - The current page of page control.
 - style: CirclePageSliderStyle - The style of button.
 - totalPages: Int - The number of pages of page control.

Live Example

To run live demo with LinerPageControll open Xcode and run project with Example target. Then in the main page open Page Controls/CirclePageControl:

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 a pull request in our project. You can read more about this in the Github documentation.
⚠️ **GitHub.com Fallback** ⚠️