Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
PouriaAmini committed Aug 2, 2024
1 parent 22d8898 commit b2365bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Amplitude/Plugins/iOS/UIKitElementInteractions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class UIKitElementInteractions {
extension UIApplication {
@objc func amp_sendAction(_ action: Selector, to target: Any?, from sender: Any?, for event: UIEvent?) -> Bool {
let sendActionResult = amp_sendAction(action, to: target, from: sender, for: event)

// TODO: Reduce SwiftUI noise by finding the unique view that the action method is attached to.
// Currently, the action methods pointing to a SwiftUI target are blocked.
let targetClass = NSStringFromClass(type(of: target as AnyObject))
Expand Down Expand Up @@ -122,11 +122,11 @@ extension UIGestureRecognizer {
amp_setState(state)

guard state == .ended, let view else { return }

// TODO: Reduce SwiftUI noise by filtering out system gesture recognizers.
// Currently, the gesture recognizers with a SwiftUI view are blocked.
let targetClass = NSStringFromClass(type(of: view as AnyObject))
if targetClass.contains("SwiftUI") {
let viewClass = NSStringFromClass(type(of: view as AnyObject))
if viewClass.contains("SwiftUI") {
return
}

Expand Down

0 comments on commit b2365bd

Please sign in to comment.