AdmiralSwiftUI Controls PinButtonStyle - admiral-team/admiralui-ios GitHub Wiki
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.
Button(action: {}, label: {})
.buttonStyle(PinButtonStyle(
image: "Your image",
isSelected: .constant(false)))
You can create a PinButtonStyle by specifying the following parameters in the initializer:
Initializer parameters:
- images - value of Image. The image is used to set the icon of the element
- isSelected - Binding<Bool>. Observable property for displaying the selected checkbox
To run live demo with PinButtonStyle open Xcode and run project with Example target. Then in the main page open Page Controls/PinButtonStyle:
You can help us to find bugs or ask us to add features.
- To start
issueplease use ready-made templates. - To make changes to the repository, you need to create a
forkof the project, make changes to the code and create apull requestin our project. You can read more about this in the Github documentation.