From d2ba8b10173a930179021a8b68d999da6dd1a1b9 Mon Sep 17 00:00:00 2001 From: Destiny Hochhalter Date: Tue, 2 Jan 2024 16:14:46 -0800 Subject: [PATCH] Update View.swift --- .../Extensions/SwiftUI/View.swift | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Sources/ArcGISToolkit/Extensions/SwiftUI/View.swift b/Sources/ArcGISToolkit/Extensions/SwiftUI/View.swift index 6eedb03e7..06522064c 100644 --- a/Sources/ArcGISToolkit/Extensions/SwiftUI/View.swift +++ b/Sources/ArcGISToolkit/Extensions/SwiftUI/View.swift @@ -122,25 +122,6 @@ extension View { action() } } - - /// Sets a closure to perform when a single tap occurs on the view. - /// - Parameters: - /// - action: The closure to perform upon single tap. - /// - screenPoint: The location of the tap in the view's coordinate space. - func onSingleTapGesture(perform action: @escaping (_ screenPoint: CGPoint) -> Void) -> some View { - if #available(iOS 16.0, *) { - return self.onTapGesture { screenPoint in - action(screenPoint) - } - } else { - return self.gesture( - DragGesture() - .onEnded { dragAttributes in - action(dragAttributes.location) - } - ) - } - } } extension View {