AdmiralSwiftUI Controls SeveralPinButtonStyle - admiral-team/admiralui-ios GitHub Wiki
The style for creating the SeveralPinButtonStyle
. Several Pin Button - the component displays the position of several objects on the map at one point, exists in three sizes: Small, Medium and Big - use the appropriate one depending on the number of characters.
static var body: some View {
Button(
action: {},
label: {Text("Button")})
.buttonStyle(SeveralPinButtonStyle(value: .constant("34"))
)
You can create a SeveralPinButtonStyle by specifying the following parameters in the initializer:
Initializer parameters:
- value - Binding<String>. Observable property for displaying text inside Pin Button
To run live demo with SeveralPinButtonStyle
open Xcode and run project with Example target. Then in the main page open Page Controls/SeveralPinButtonStyle:
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.