visionOS and SwiftUI
Use the window group and immersive space context entities and events to understand user behavior within visionOS apps on Apple's Vision Pro headset.
Track the opening and dismissing of SwiftUI window groups using OpenWindowEvent
and DismissWindowEvent
. These events can be used in any SwiftUI app, not just visionOS. The event data is sent as a window group context entity attached to these events; the events themselves have no properties.
Use the OpenImmersiveSpaceEvent
and DismissImmersiveSpaceEvent
to automatically add an immersive space context entity to all events occurring within an immersive space. The entity will identify the immersive space in which the events occurred. This feature is enabled by default for the iOS tracker. Again, the events themselves have no properties.
Snowplow currently only supports visionOS apps via SwiftUI, not Unity.
Window group context entity
Schema for a window group entity, representing the SwiftUI window group that the event occurs in.
Schema URI:iglu:com.apple.swiftui/window_group/jsonschema/1-0-0
Web | Mobile | Tracked automatically |
---|---|---|
❌ | ✅ | ❌ |
👀 Example
📃 Schema properties definition
Immersive space context entity
Schema for an immersive space entity, representing the VisionOS immersive space that the event occurs in.
Schema URI:iglu:com.apple.swiftui/immersive_space/jsonschema/1-0-0
Web | Mobile | Tracked automatically |
---|---|---|
❌ | ✅ | ✅ |
👀 Example
📃 Schema properties definition
Open window event
Schema for an event for opening a SwiftUI window or window group.
Schema URI:iglu:com.apple.swiftui/open_window/jsonschema/1-0-0
Web | Mobile | Tracked automatically |
---|---|---|
❌ | ✅ | ❌ |
👀 Example
📃 Schema properties definition
❓ How to query the event in the warehouse?
Dismiss window event
Schema for an event for dismissing a SwiftUI window or window group.
Schema URI:iglu:com.apple.swiftui/dismiss_window/jsonschema/1-0-0
Web | Mobile | Tracked automatically |
---|---|---|
❌ | ✅ | ❌ |
👀 Example
📃 Schema properties definition
❓ How to query the event in the warehouse?
Open immersive space event
Schema for an event for opening a visionOS immersive space.
Schema URI:iglu:com.apple.swiftui/open_immersive_space/jsonschema/1-0-0
Web | Mobile | Tracked automatically |
---|---|---|
❌ | ✅ | ❌ |
👀 Example
📃 Schema properties definition
❓ How to query the event in the warehouse?
Dismiss immersive space event
Schema for an event for dismissing a visionOS immersive space.
Schema URI:iglu:com.apple.swiftui/dismiss_immersive_space/jsonschema/1-0-0
Web | Mobile | Tracked automatically |
---|---|---|
❌ | ✅ | ❌ |