简体   繁体   中英

Why is my app icon bigger than the others in the macOS dock?

I just added an app icon to my project in SwiftUI-macOS. After building and running I see my app icon is bigger than it should be? Why does this happen, As you can see. it has no corner radius either.

在此处输入图像描述

I would suggest having a look at Human Interface Guidelines/App Icons and images and Apple Design Resources

For example, this is one of the (Photoshop) templates which I based my designs off

在此处输入图像描述

As you can see, the "background" is inset from the edge of the image boundaries, which allows you to do things like...

在此处输入图像描述

Size of RoundedRectangular for art design would be (13/16) of 1024X1024 equal 832X832

CornerRadius of RoundedRectangular would be (22/100) of 832.0 or in other word would be (22/100)X(13/16)X1024.0

After making this image that its real size is 1024X1024 and the art size is 832X832 we can build other smaller sizes for our Xcode macOS projects via online or offline icon maker.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM