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-20 21:16:12 -07:00
|
|
|
.accessibilityLabel("Position Exchange Requested".localized)
|
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 {}
|
|
|
|
|
}
|
|
|
|
|
}
|