Fix UserAnnotationCalloutView

This commit is contained in:
SBiOSoftWhare
2022-04-05 17:51:18 +02:00
parent 70cb103880
commit 8988a09810
@@ -101,7 +101,7 @@ class UserAnnotationCalloutView: UIView, MGLCalloutView, Themable {
if isCalloutTappable() {
// Handle taps and eventually try to send them to the delegate (usually the map view).
self.contentView.shareButton.addTarget(self, action: #selector(CustomCalloutView.calloutTapped), for: .touchUpInside)
self.contentView.shareButton.addTarget(self, action: #selector(UserAnnotationCalloutView.calloutTapped), for: .touchUpInside)
} else {
// Disable tapping and highlighting.
self.contentView.shareButton.isUserInteractionEnabled = false