Skip to content

Commit

Permalink
fix: remove tag as textfield title
Browse files Browse the repository at this point in the history
  • Loading branch information
PouriaAmini committed Jul 11, 2024
1 parent 6b57830 commit ff80f77
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class UIKitUserInteractions {
}()

static func register(_ amplitude: Amplitude) {
lock.lock()
amplitudeInstances.add(amplitude)
lock.unlock()
lock.withLock {
amplitudeInstances.add(amplitude)
}
initializeSwizzle
initializeNotificationListeners
}
Expand Down Expand Up @@ -107,8 +107,6 @@ extension UIView {

if let button = self as? UIButton {
targetText = button.currentTitle
} else if let textField = self as? UITextField {
targetText = String(textField.tag)
} else if let segmentedControl = self as? UISegmentedControl {
targetText = segmentedControl.titleForSegment(at: segmentedControl.selectedSegmentIndex)
} else {
Expand Down

0 comments on commit ff80f77

Please sign in to comment.