-
-
Notifications
You must be signed in to change notification settings - Fork 60
Description
At the moment, SwiftCrossUI takes WindowResizability.contentSize to mean that the window should have a fixed size equal to that of its content view. That's flawed because the size of the content view itself can be influenced by the view's default size. Also, it doesn't align with SwiftUI.
contentSize should instead constrain the window's dimensions to be greater than or equal to the content view's minimum size, and less than or equal to the content view's maximum size (unless full screened, in which case it should just center the content view in whatever size the window gets given). On mobile, apps are always fullscreen (other than newer iPadOS versions, which will require special consideration), so contentSize should just be treated the same as contentMinSize.