Consider supporting UIDeviceFamily 6 #14621
Labels
dotnet
An issue or pull request related to .NET (6)
dotnet-pri1
.NET 6: important for stable release
Projects
Milestone
When developing an app with MAUI and targeting
net6.0-maccatalyst
, the toolchain will currently default to what Xcode's UI calls "Scale Interface to Match iPad". This will scale the interface to 77%.Xcode alternatively offers the "Optimize Interface for Mac" option, which disables this scaling (but requires more custom work).
Best as I can tell, all this option does is set
UIDeviceFamily
in theInfo.plist
from2
to the (apparently undocumented) value6
.If I build a MAUI app, then afterwards change the
Info.plist
to6
, it is indeed no longer scaled. However, I cannot do this at design time, because the Xamarin toolchain checks this value:Steps to Reproduce
Info.plist
to changeUIDeviceFamily
from2
to6
.Expected Behavior
This value is (apparently) needed for proper Catalyst support, so it should build.
Actual Behavior
Xamarin.MacDev.ManifestExtensions.ParseDeviceFamilyFromNumber
appears to not expect the value6
.Environment
Build Logs
The text was updated successfully, but these errors were encountered: