import Combine import CoreLocation import MapKit import SwiftUI struct AttachmentLocationPickerView: View { @State var region = MKCoordinateRegion() var body: some View { VStack(spacing: 0) { // Map Map( coordinateRegion: $region, interactionModes: .all, showsUserLocation: false, userTrackingMode: .constant(.follow) ) .overlay { Image(systemName: "mappin") .font(.system(size: 30)) .foregroundColor(.Material.Elements.active) } // Send panel Rectangle() .foregroundColor(.Material.Shape.black) .frame(maxWidth: .infinity) .frame(height: 50) .overlay { HStack { Text(L10n.Attachment.Send.location) .foregroundColor(.Material.Text.white) .font(.body1) Image(systemName: "arrow.up.circle") .foregroundColor(.Material.Text.white) .font(.body1) .padding(.leading, 8) } .padding() } .clipped() .onTapGesture { // TODO: Send location print("Send location") } } } }