Post

Replies

Boosts

Views

Activity

Reply to Safari-like toolbar in visionOS
BTW, I can put a toolbar at the bottom of the window, but it isn't separated a fixed distance from the window like Safari's is. From my reading of Apple's HIG on toolbars, this is the proper place to put toolbar items in visionOS. Should I go with this design (which looks like Apple HIG's preferred design) as opposed to following Safari's design? struct ContentView: View { var body: some View { Text("This is some text") .toolbar { // .bottomOrnament only placement that works ToolbarItemGroup(placement: .bottomOrnament) { Button("Hello") { print("World") } Button("Goodbye") { print("cruel world") } } } } }
Topic: Spatial Computing SubTopic: General Tags:
Oct ’25
Reply to Scene's origin relative to portal's window?
I discovered part of my confusion. An entity (e.g., green cylinder) that is front of the portal is still visible as long as the portal's clipping plane isn't activated. In screenshots below, initially Red cylinder is at Z = 0; Blue cylinder is at Z = -0.3 Green cylinder is at Z = 0.3 (in front of the portal plane). Despite the green cylinder being in front of the window/portal plane, it is initially still visible as long as it is positioned between the camera and the portal window. When I activate the clipping plane, the green cylinder disappears, and the red cylinder gets cut in half. To have the green cylinder appear beyond the frame of the portal, (1) the portal has to have the PortalComponent's crossingMode set to .plane(.positiveZ) and (2) the green cylinder needs to have a PortalCrossingComponent. I am still stuck on the fact that when I move the green cylinder's Z position to +0.5, it still gets clipped. Still have lots to learn... Example screenshots: Green cylinder Z at 0.3, it appears in front of the portal but rendering is still bound by the portal. Portal's clipping plane is enabled. Green cylinder is gone, and red cylinder is cut in half, verifying clipping plane is at Z = 0. Portal's PortalComponent crossingMode = .plane(.positiveZ) and PortalCrossingComponent added to green cylinder. When green cylinder is pushed out to Z = 0.5, part of it is still clipped. Is there a limit for how far things can come out of the portal?
Topic: Spatial Computing SubTopic: General Tags:
Mar ’25
Reply to Xcode does not see Apple Vision Pro headset
Resolved! In case someone else runs ints this problem, or I do in the future and find this post, here is what I did: In Apple Vision Pro, I selected Settings > General > Remote Devices The pane said it was available for pairing. In Xcode, I selected the "No eligible devices" in the destination pop-up (down?) menu. In the "Devices and Simulators" windows, my Apple Vision Pro shows up. Then I could select it and pair with it (a challenge code popped up in the Vision Pro).
Feb ’25