-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
The onTapGesture is not working inside the ViewMapAnnotation, here is my code:
`Map(
coordinateRegion: $region,
type: .standard,
pointOfInterestFilter: .includingAll,
interactionModes: [.all],
annotationItems: evChargerManager.evChargers,
annotationContent: { charger in
ViewMapAnnotation(coordinate: (charger.addressInfo?.coordinates)!) {
Image(K.Images.SupplementarilyIcons.pinpoint)
.resizable()
.frame(width: 40, height: 40, alignment: .center)
.onTapGesture {
showingSheet.toggle()
}
.sheet(isPresented: $showingSheet) {
EVChargerView(evCharger: charger)
} //: SHEET
} //: VIEW MAP ANNOTATION
} //: ANNOTATION CONTENT
) //: MAP`
Metadata
Metadata
Assignees
Labels
No labels