iOS SDK - tracking inputs
Tracker will listen to value change event (debounced) and send resulting value to OpenReplay backend.
Adding tracked inputs
Section titled Adding tracked inputsSwiftUI
Section titled SwiftUIuse .observeInput(text:label:masked)
to observe input events,
text: String
- input’s text valuelabel: String
- label for recorded inputmasked: Bool
- iftrue
, tracker will only record the input event itself, not the value, don’t forget to add.sensitive
to blur the input from recording.
import ORTracker
TextField("Input", text: $text)
.observeInput(text: $text, label: "tracker input #1", masked: Bool)
UIKit
Section titled UIKitUIKit will use placeholder as label and sender.isSecureTextEntry to mask the input
import ORTracker
Analytics.shared.addObservedInput(inputEl)
Have questions?
Section titled Have questions?If you have any questions about this process, feel free to reach out to us on our Slack or check out our Forum.