SwiftUI using Mac Catalyst destination the destination but provided destination is iPhone 17 Pro

Using SwiftIUI with CommandGroup for iPad app on Xcode Version 26.2 (17C52). I tried to test on Mac Catalyst. Output view is iPad size but my SwiftUI view is small on the left. I tried to override the frame size used but none of the suggested ways compiled. Used both "Scaled for iPad" and "Optimized for Mac" in deployment Info with same results.

Thank you for your post. May I request that you create a focused sample that developers in the forums can run and observe the results?

When running a SwiftUI app designed for iPad on Mac Catalyst, it can be challenging to ensure that the UI scales appropriately and fills the available screen space. However I am confused your iPad target is an iPhone 17?

Ensure that your main view is set to expand and fill the available space. You can try using to understand the available space and adjust your layout accordingly. Mac Catalyst provides specific modifiers and environment values you can leverage to better adapt your UI. Ensure that the Mac Catalyst app’s window toolbar isn’t consuming excessive space or causing layout issues. Test your app with different Mac resolutions or window sizes to confirm whether the layout issue is specific to certain dimensions or more general. Since you are using Xcode 26.2 (17C52), ensure that you are also on the latest version of macOS.

I look forward to seeing your focused sample demonstrating the issue. Can you explain a little bit more about the target of the iPad being an iPhone?

Albert Pascual
  Worldwide Developer Relations.

SwiftUI using Mac Catalyst destination the destination but provided destination is iPhone 17 Pro
 
 
Q