Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PouriaAmini committed Jul 18, 2024
1 parent bbc00f8 commit a9e8dac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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") }
Expand All @@ -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")
}
Expand Down

0 comments on commit a9e8dac

Please sign in to comment.