2024-02-05 23:31:54 -07:00
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
|
|
struct RequestPositionButton: View {
|
|
|
|
|
let action: () -> Void
|
|
|
|
|
|
|
|
|
|
var body: some View {
|
|
|
|
|
Button(action: action) {
|
|
|
|
|
Image(systemName: "mappin.and.ellipse")
|
2025-05-11 16:12:34 -07:00
|
|
|
.accessibilityLabel(NSLocalizedString("request_position", comment: "VoiceOver label for request position button"))
|
2024-02-05 23:31:54 -07:00
|
|
|
.symbolRenderingMode(.hierarchical)
|
|
|
|
|
.imageScale(.large)
|
|
|
|
|
.foregroundColor(.accentColor)
|
|
|
|
|
}
|
2024-02-13 10:58:07 -08:00
|
|
|
.padding(.trailing)
|
2024-02-05 23:31:54 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct RequestPositionButtonPreview: PreviewProvider {
|
|
|
|
|
static var previews: some View {
|
|
|
|
|
RequestPositionButton {}
|
|
|
|
|
}
|
|
|
|
|
}
|