window loses resize feature on reopening

I have this problem on VisionOS. When I dismiss and reopen a window from a ImagePresentationComponent, the window misses the resize ui elements when I look at the window corners. The rest of the window ui elements (drag, close...) are there. Resizing was possible before the window was dismissed.

The code is something like this:

WindowGroup(id: "image-display-window",..... } .windowResizability(.automatic) .windowStyle(.plain)

I call dismissWindow() from the window view and it is dismissed correctly.

Then I call openWindow(id: "image-display-window", value: data) from another view to reopen it. It reopens but it missing the possibility to resize.

Anyone knows how to fix this?

Thanks.

Hi @MadGM,

This sounds like a bug to me. I also tried and can reproduce the same issue. Can you file a feedback report at https://feedbackassistant.apple.com with a sample project and respond here with the FB number?

Interestingly, I did notice that the resizability is available with the automatic window style, although the image is obscured. I did not find a workaround, but if I do I will respond back here.

window loses resize feature on reopening
 
 
Q