AdmiralSwiftUI Controls MapButtonStyle - admiral-team/admiralui-ios GitHub Wiki
Overview
The style for creating the MapButtonStyle. The presented style is used to create buttons on the map
To configure the current button style for a view hierarchy, use the buttonStyle(_:) modifier.
You can create buttons of the following types: (plus, minus, location and custom by specifying your own image) by specifying the size type in the initial button style
Code
Button(action: {}, label: {})
.buttonStyle(MapButtonStyle(type: .plus))
You can create a MapButtonStyle by specifying the following parameters in the initializer:
- type: MapButtonType - plus, minus, location and custom by specifying your own image
Live Example
To run live demo with MapButtonStyle open Xcode and run project with Example target. Then in the main page open Page Controls/MapButtonStyle:
Contribution
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.