By default, user can resize the spatial views however they like, which can lead to incorrect UI. Is it possible to set a specific aspect ratio, for example, 16/9?
I tried using .aspectRatio() on the SwiftUI view, in combination with .windowResizability(.contentSize) on the WindowGroup, but it didn't work.
One more idea was to use GeometryReader to dynamically calculate the width and height for a specific aspect ratio and then set the proper maxHeight and maxWidth in the frame, but it also didn't work.
There's no documentation about it and Apple's sample apps don't have it as well. But I've seen some apps (even some of the standard ones like Apple TV) having a fixed ratio, would really appreciate if somebody could help with this!