Hello,
Welcome to our Microsoft Q&A platform!
The picture you uploaded about your Assets.xcassets in Visual Studio for Mac did not load, I 'm afraid you could upload again.
Which icon sizes should I add to Assets.xcassets?
The following icon size is necessary:
- 20 * 20 pt (20*20px , 40*40px and 60*60px)
- 29 * 29 pt (29*29px, 58*58px and 87*87px)
- 40 * 40 pt (40*40px, 80 *80px and 120*120 px)
- 60 * 60 pt(120*120px and 180*180px)
- 76 * 76 pt(76*76 px and 152*152 px)
- 83.5* 83.5pt(167*167px)
- 1024 * 1024pt(1024*1024px)
Please pay attention to the @1x
, @2x
, @3x
picture and unticking the Alpha channel.
Is it necessary to add all icon images to Assets.xcassets, even the icons for CarPlay, Apple Watch and Mac?
If your app is only for iPhones and iPads, it's not necessary to add all icon images.
Which is the best icon size for LaunchScreen.storyboard? I want to place my icon in the center of the launchscreen.
If you want to add the icon into launch screen, I advice you to desigin a new size. You also could use the 1024 one, it depends on how to display.
For example, you could try to add an ImageView to the ViewController
, then add constraints to the ImageView, setting centerY
and centerX
, setting it own aspect 1:1, setting the leading and trailing to Safe Area.
In this way, the picture will be displayed in the center with the same width and height, and the specific size of the picture depends on the size of the different screens.
For more information, you could refer to
https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/images-icons/app-icons?tabs=macos https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/images-icons/launch-screens?tabs=macos
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.