From a9e8dacef7ca86e589a171931b719c4b173a2846 Mon Sep 17 00:00:00 2001 From: "pouria.amini" Date: Thu, 18 Jul 2024 09:36:31 -0700 Subject: [PATCH] fix: fix lint --- Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift b/Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift index f6e874e..29ecacd 100644 --- a/Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift +++ b/Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift @@ -82,7 +82,7 @@ class UIKitUserInteractions { @objc static func handleTap(_ sender: UIGestureRecognizer) { if let target = findTargetUnderTap(for: sender) { guard target.type.contains(.button) || target.type.contains(.link) else { return } - + let userInteractionEvent = target.eventFromData(with: "Tap") UIKitUserInteractions.amplitudeInstances.allObjects.forEach { @@ -278,7 +278,7 @@ extension UIView { extension UIAccessibilityTraits { func stringify() -> String? { var strings = [String]() - + if contains(.button) { strings.append("Button") } if contains(.header) { strings.append("Header") } if contains(.image) { strings.append("Image") } @@ -287,7 +287,7 @@ extension UIAccessibilityTraits { if contains(.searchField) { strings.append("Search Field") } if contains(.staticText) { strings.append("Static Text") } if contains(.tabBar) { strings.append("Tab Bar") } - + if #available(iOS 17.0, tvOS 17.0, macCatalyst 17.0, *), contains(.toggleButton) { strings.append("Toggle Button") }