AdmiralUIKit Controls PinButtonStyle - admiral-team/admiralui-ios GitHub Wiki

Overview

PinButtonStyle - The style for creating the Pin Button. Pin Button - tеhe component displays the position of the object on the map, exists in two states: Default and Selected. It is also possible to change the company logo inside the component or install an icon.

Code

 let button = PinButton()
button.isSelected = true

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

Initializer parameters:
 - image - value of UIImage. The image is used to set the icon of the element
 - isSelected - Bool. Observable property for displaying the selected checkbox

Live Example

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

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.