Hello everyone,
The setup:
I have an iPadOS app.
The app does not require full screen (Requires full screen option is disabled).
The problem:
The app starts looking unpolished when the canvas becomes too small.
What I tried:
I am trying to limit the canvas size for our app when run in Stage Manager.
How:
I saw that UIWindowScene has sizeRestrictions. This property is not always set as per documentation:
https://developer.apple.com/documentation/uikit/uiwindowscene/sizerestrictions
From my experiments, it only works when it's run on MacOS (in compatibility mode in our case).
Console logs:
Stage Manager - Requires full screen - OFF
willConnectToSession - sizeRestrictions: nil
sceneDidBecomeActive - sizeRestrictions: nil
Stage Manager - Requires full screen - ON
willConnectToSession - sizeRestrictions: nil
sceneDidBecomeActive - sizeRestrictions: nil
Stage Manager - Requires full screen - OFF - RUN on MacOS
willConnectToSession - sizeRestrictions: Available
sceneDidBecomeActive - sizeRestrictions: Available
Question:
Is there a way to enforce this minimum canvas size?
Topic:
UI Frameworks
SubTopic:
UIKit