Skip to main content
Version: 1.0.0

Track SwiftUI Views in Activity Trail

Appxiom provides a custom modifier to track SwiftUI views in the activity trail. This feature is available in both debug and release flavours of the framework.

The custom modifier ax can be added to any SwiftUI view. Once applied, the onAppear and onDisappear events of the view will be automatically tracked and included in the Appxiom activity trail.

How to Use ax Modifier

Text("Tap Me").ax()

Best Practices

  • Use ax on key SwiftUI views to capture meaningful lifecycle events.
  • Combine with custom activity markers for deeper insights (see Setting custom Activity Markers).

Frequently Asked Questions (FAQ)

Q: What does the ax modifier do?
A: It tracks the onAppear and onDisappear events of a SwiftUI view and adds them to the Appxiom activity trail.

Q: Can I use ax on any SwiftUI view?
A: Yes, you can apply ax to any SwiftUI view to track its lifecycle events.

Q: Where can I see the tracked events?
A: All tracked view lifecycle events are visible in the Appxiom dashboard’s activity trail section along with each reported issue.

Q: How can I track UIKit view events?
A: For UIKit, use custom activity markers or see the Activity Markers guide.