Use of xcassets

后端 未结 3 917
天涯浪人
天涯浪人 2021-02-05 00:30

Is .xcassets resource only for app icons and launch images or for our own image assets also? I do know that we can add our images to the .xcassets file, but is it good practice

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 01:11

    Apple said that the asset catalog editor in Xcode manages your app’s images, grouping together various resolutions of the same asset. When building, Xcode compiles the asset catalog into the most efficient bundle for final distribution.

    So basic asset catalog can manage AppIcon and LaunchImage.

    enter image description here

    But you can also add new images to new folders as below.

    enter image description here

提交回复
热议问题