How can I use availability checks with the new defaultWindowPlacement API so I can ensure visionOS 2 users get the correct window placement and visionOS 1 users fall back to the old window placement mechanism?
I have tried using if #available and @available in different ways, but end up with either an error that says control flow statements aren't allowed in SceneBuilders or that the return type of the two branches of my control flow statement do not match if I omit the SceneBuilder property.
An example of how to use .defaultWindowPlacement with visionOS 1 support would be nice. Thank you!
Post
Replies
Boosts
Views
Activity
Is it possible to setup a bonjour connection between a watch and iPhone or iPad outside the context of audio streaming?
I have a bonjour service on a pilots iPad that broadcasts flight data from pilots to passengers. Is it possible for a standalone, watchOS 7 app to connect to this service to consume the data?