Post

Replies

Boosts

Views

Activity

Comment on visionOS - Positioning and sizing windows
Correct. An immersive space will take the device out of “multi-app productivity mode“ and into a “single app focus mode” of sorts. Perhaps you can create a Volume with a RealityView+attachment but you run the risk of the user rotating your window out of view. ”Billboarding” the attachment so it always faces the user could b disorienting. Also, Volumes do not scale the way windows do. If a user moves a window far from them, it gets bigger to maintain the same visual size. Volumes do not.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’23
Comment on Opening a SwiftUI app window to a particular place via intent?
Yeah! This can make a lot of sense too, but my app is a Multi-Window app, so while I have an App-level AppState object, I also have A WindowGroup level SceneState. Can you think of any ideas to grab the "right" window state that the intent opens when it brings the app to the foreground? Like I said in a comment above, I think using "App's" "openWindow" environment property is the right solution in that case, but there appears to be a bug in the beta that causes it to not work atm.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Comment on Opening a SwiftUI app window to a particular place via intent?
Oh gosh, Notification Center sounds like it could actually work. Idk why that didn’t pop into my head. I tried sticking the openwindow object into a singleton and it definitely broke the rest of my opens windowing functionality for unknown reasons. (literally just the act of passing the instance into the singleton cause open window commands from a context menu to fail)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Comment on visionOS - Positioning and sizing windows
Correct. An immersive space will take the device out of “multi-app productivity mode“ and into a “single app focus mode” of sorts. Perhaps you can create a Volume with a RealityView+attachment but you run the risk of the user rotating your window out of view. ”Billboarding” the attachment so it always faces the user could b disorienting. Also, Volumes do not scale the way windows do. If a user moves a window far from them, it gets bigger to maintain the same visual size. Volumes do not.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on Opening a SwiftUI app window to a particular place via intent?
Yeah! This can make a lot of sense too, but my app is a Multi-Window app, so while I have an App-level AppState object, I also have A WindowGroup level SceneState. Can you think of any ideas to grab the "right" window state that the intent opens when it brings the app to the foreground? Like I said in a comment above, I think using "App's" "openWindow" environment property is the right solution in that case, but there appears to be a bug in the beta that causes it to not work atm.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on Opening a SwiftUI app window to a particular place via intent?
Oh gosh, Notification Center sounds like it could actually work. Idk why that didn’t pop into my head. I tried sticking the openwindow object into a singleton and it definitely broke the rest of my opens windowing functionality for unknown reasons. (literally just the act of passing the instance into the singleton cause open window commands from a context menu to fail)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22