You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for alternate app icons, and MSBuild items/properties to include them in Info.plist #12790
dotnetAn issue or pull request related to .NETdotnet-pri0.NET 6: required for stable releaseenhancementThe issue or pull request is an enhancementhigh-priorityThis is a high-priority issue or pull requestiOSIssues affecting iOSmacOSIssues affecting macOS
Currently there's an info.plist key XSAppIconAssets which specifies which icon is to be used as the primary/default app icon.
Can we modernize how we include these assets by allowing support for MSBuild items/properties, and also include the ability to include multiple icon assets and have them all registered properly in the info.plist?
Something like this:
<ItemGroup>
<!-- One icon can be primary -->
<BundleResourceInclude="Assets.xcassets/appicon.appiconset"RegisterPrimaryBundleIcon="True" />
<!-- Zero or more alternate icons -->
<BundleResourceInclude="Assets.xcassets/alternateappicon.appiconset"RegisterAlternateBundleIcon="True" />
<BundleResourceInclude="Assets.xcassets/alternateappicon2.appiconset"RegisterAlternateBundleIcon="True" />
</ItemGroup>
In the Info.plist would generate something like this:
dotnetAn issue or pull request related to .NETdotnet-pri0.NET 6: required for stable releaseenhancementThe issue or pull request is an enhancementhigh-priorityThis is a high-priority issue or pull requestiOSIssues affecting iOSmacOSIssues affecting macOS
Activity
yuriibabii commentedon Sep 6, 2023
Hey guys, I found a hackish way to do that. You might want to check it out:
https://stackoverflow.com/a/77050207/6157156
lakhan-bairawat commentedon Jun 17, 2024
how we can achieved this in android
like :- iOS Apps support the ability to [set alternate app icons]
[msbuild] Add support for alternate app icons. (dotnet#21475)