We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen names are auto generated, so autocapture does not work well nor the detection of the current screen for session replay
fallback to accessibilityIdentifier or friends if available
posthog-ios/PostHog/UIViewController.swift
Line 55 in e35ec56
posthog-ios/PostHog/Replay/PostHogReplayIntegration.swift
Line 476 in e35ec56
The text was updated successfully, but these errors were encountered:
afaik accessibilityIdentifier isn't available at runtime for production builds, what we could do is wrap the view:
accessibilityIdentifier
var body: some View { PostHogView("Name"){ List { ... } } }
in this case, we can read the Name at runtime but it's not much different than calling PostHog.screen("Name"), all screens need to be wrapped.
Name
PostHog.screen("Name")
Sorry, something went wrong.
Another option would be to use the objc_getAssociatedObject and objc_setAssociatedObject as an extension method to UIKit and SwiftUI views
objc_getAssociatedObject
objc_setAssociatedObject
Edit: not possible either since the associated objects are different when scanning the view tree
ph-no-capture
No branches or pull requests
Problem Statement
Screen names are auto generated, so autocapture does not work well nor the detection of the current screen for session replay
Solution Brainstorm
fallback to accessibilityIdentifier or friends if available
posthog-ios/PostHog/UIViewController.swift
Line 55 in e35ec56
posthog-ios/PostHog/Replay/PostHogReplayIntegration.swift
Line 476 in e35ec56
The text was updated successfully, but these errors were encountered: