Spatial SwiftUI: ZStack
ZStack is a core container view in SwiftUI, but it really shines in visionOS where depth is real.
Code snippets and examples of using common APIs throughout visionOS development
ZStack is a core container view in SwiftUI, but it really shines in visionOS where depth is real.
Taking a look at the hoverEffect modifier.
Using shadows on 2D views to convey depth.
Exploring some uses of transform3DEffect and AffineTransform3D.
Configure and run a Spatial Tracking Session to use ARKit features in RealityKit.
Using rotation3DEffect to rotate views in a window.
Using z axis offset to lift our views out of their window.
We can use `persistentSystemOverlays(_:)` to control the visibility of window controls.
Using a loading window as a launch pad from one immersive space to another.
What if we want to hide a window when entering an immersive space?
We can add a Spatial Tracking Session if we need to use hand tracking features. These features include physics and collisions. They also include accessing transforms.
We can specify a count to indicate the number of taps required to trigger a TapGesture.