###### tags: `SwiftUI`
# **Assets.xcassets**
1. **Assets**
To help you manage and create user interface elements for your app. Images you create for your app, including app icons, launch screens, color sets and so on will be stored in here.

---
2. **Function**
>đź’ˇ When you create a new Xcode project, it will automatically add a file named <font color ="red">`Assets.xcassets`</font> to your project
- Adding Image
1. Open Assets → ++Right-click++ on the catalog → click <font color ="red"> `New Image Set` </font>→ Drag the Image you want into the square above 1x


2. Drag the Image you want to the catalog, and it will add as an image set
- Adding color sets
Open Assets → ++Right-click++ on the catalog → Click <font color ="red">`New Color Set`</font> → Click inspector on the top right → set up the color you want
>💡 After Xcode 10 there’s a new feature — Dark Mode, and you can setup different colors in dark appearance, but only the version iOS 13 or newer support Dark Mode.

- Adding AppIcon
>đź’ˇ To add app icon you need create the image for all size of iPhones
Open Asset → Click AppIcon → Put Image into the squares

- Generate app icon I recommend “Icon Set Creator”, it’s very easy to use and it’s free on App Store. (Not Sponsored)
