Skip to content

Commit

Permalink
fix: exclude unsupported gestures in tvos
Browse files Browse the repository at this point in the history
  • Loading branch information
PouriaAmini committed Jul 16, 2024
1 parent 3174d4c commit b02fbd6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ extension UIGestureRecognizer {

let gestureType = switch self {
case is UITapGestureRecognizer: "Tap"
case is UIPinchGestureRecognizer: "Pinch"
case is UIRotationGestureRecognizer: "Rotation"
case is UISwipeGestureRecognizer: "Swipe"
case is UIPanGestureRecognizer: "Pan"
case is UIScreenEdgePanGestureRecognizer: "Screen Edge Pan"
case is UILongPressGestureRecognizer: "Long Press"
#if !os(tvOS)
case is UIPinchGestureRecognizer: "Pinch"
case is UIRotationGestureRecognizer: "Rotation"
case is UIScreenEdgePanGestureRecognizer: "Screen Edge Pan"
#endif
default: "Custom Gesture"
}

Expand Down

0 comments on commit b02fbd6

Please sign in to comment.