There is no way to preserve aspect ratio or to scale the icon inside the icon area.
My app icon looks awful due to the fact that it stretches somehow through the icon area (both stretched and cropped when not a square probably).
Simulation of the MauiIcon behavior:
Image
Result:
Description
There is no way to preserve aspect ratio or to scale the icon inside the icon area. My app icon looks awful due to the fact that it stretches somehow through the icon area (both stretched and cropped when not a square probably).
Simulation of the MauiIcon behavior: Image Result:
Setting
BaseSize
andForegroundScale
attributes onMauiIcon
does nothing although the behavior is documented in https://docs.microsoft.com/en-us/dotnet/maui/user-interface/images/app-iconsSteps to Reproduce
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11
Did you find any workaround?
No response
Relevant log output
No response