How to set the min and max size of a swiftUI for user resizing?

I have a swiftUI panel poped up in my scene. And how to set the min and max size of a swiftUI for users' resizing?

Answered by Vision Pro Engineer in 795846022

Hey @YimingLi,

You can use the windowResizability(_:) scene modifier to set minimum and maximum size restrictions on windows. Please view the documentation for more information.

Hope that helps,

Michael

Max size of what ?

Hey @YimingLi,

You can use the windowResizability(_:) scene modifier to set minimum and maximum size restrictions on windows. Please view the documentation for more information.

Hope that helps,

Michael

How to set the min and max size of a swiftUI for user resizing?
 
 
Q