AdmiralSwiftUI Controls MapButtonStyle
Kirill Borisov edited this page Aug 14, 2022
·
1 revision
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
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
To run live demo with MapButtonStyle
open Xcode and run project with Example target. Then in the main page open Page Controls/MapButtonStyle:
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.