init(_:action:)
Creates a location button with the specified title and action.
Declaration
nonisolated init(_ title: LocationButton.Title? = .currentLocation, action: @escaping () -> Void)Parameters
- title:
The text that the button displays. For possible values, see Title.
- action:
The action that initiates every time the user taps the button.