Skip to content

v1.4.5

@VistaApps-za VistaApps-za tagged this 26 May 16:55
and see what users tapped on yesterday."

**Added:**

- **`View.crossdeckScreen("Name")`** — public SwiftUI modifier that
  fires `page.viewed` with `{ screen, title }` properties when the
  view appears. SwiftUI's view tree hides class names from the
  iOS SDK's swizzle-based auto-track (the host is always
  `UIHostingController<…>`, denylisted for the right reason), so
  pure-SwiftUI apps emitted zero `page.viewed` events. One line
  per screen and the Pages dashboard populates the same way it
  does for a web app's URL list. Matches the pattern Mixpanel /
  Amplitude / PostHog ship on iOS; pairs with the Pages-backend
  change that groups by `screen` when `url` / `path` are absent.
  Properties are also forwarded through `cd.track(...)` so the
  standard coercion + size guard apply.

No behavioural change to existing UIKit auto-track — UIKit screens
keep firing `page.viewed` automatically via the
`UIViewController.viewDidAppear` swizzle (unchanged).
Assets 2
Loading