I’m working on a SwiftUI sheet that has a specific size 624 x 746, but I’m running into issues on certain devices like the iPad mini in landscape or when using Stage Manager. The sheet sometimes gets cut off, and the content inside isn’t fully visible.
Current Implementation:
- The sheet is 624 x 746, but if there's less width or height around the sheet, I want it to scale dynamically while maintaining the aspect ratio (to ensure the content can always be shown)
- Ideally, I’d love for the sheet to increase in size on larger screens to cover more of the page behind it.
- The sheet contains a NavigationStack with multiple pages.
Problems I’m Facing:
- iPad mini (landscape): The bottom content (like buttons) gets cut off when the sheet height is constrained.
- Stage Manager: If the user resizes the window, the sheet doesn’t adjust properly, leading to UI clipping.
- Ideal behavior: I want the sheet to dynamically scale its width and height while maintaining the aspect ratio.
Questions
- How can I prevent content from being cut off when using the sheet in iPad mini landscape?
- Is there a better approach to handle Stage Manager resizing dynamically?
- Any insights or alternative approaches would be greatly appreciated! 🚀
Also, I’m a designer, and I’m doing this to help our development team—so please bear with my code 😅
Thanks in advance! 😊