Let's add images into our project by performing the following:
- Select the Assets.xcassets folder in the NAVIGATOR PANEL:
![](assets/15a14be8-34c9-4040-b12b-0ce2d512bd6c.png)
- Hit the Delete or Backspace button, and you will get the following message:
![](assets/883ae12f-d67a-4fdd-81bd-876c59dd31c2.png)
- Select Move to Trash.
- Open the project's assets folder that you downloaded from Packt's website or GitHub. Open Chapter_07. Drag the Assets.xcassets folder into your project in the Navigator Panel:
![](assets/eaf72880-72f9-46c3-947f-5c15ba414879.png)
- When you drop the folder, you will get the following message:
![](assets/028c500e-7980-4e65-8dda-899e18500621.png)
- Make sure that both Copy items if needed and Create groups are selected. Then, hit Finish.
If you open the Assets.xcassets folder, you will now see all the assets for your entire project:
![](assets/a69b6636-7c3a-42c4-9bc7-3fd0684473ee.png)
When you explore the assets, you will notice that we will be using both PNGs and PDFs.
Using PDFs allows us to support multiple device resolutions with only one image. Therefore, Xcode can handle supplying assets for all resolutions.
- Select Main.storyboard again, and, in the Outline view, select both disclosure arrows for Item 1 Scene and Item 2 Scene, to have them face downwards:
![](assets/bd715ff9-7d2f-4095-b7c0-8b4102707cb3.png)
- Select both disclosure arrows for Item 1 under Item 1 Scene and Item 2 under Item 2 Scene. Both should be downward-facing:
![](assets/9a701567-9af1-4b2f-99a9-4608ce014164.png)
- Select Item 1 with the blue star to the left of it, and then select the Attributes inspector in the UTILITIES PANEL:
![](assets/8ec69ead-962e-483a-b5ae-f50455f40004.png)
- In the panel, use the following values to update your first tab icons:
-
- In the Tab Bar Item, enter the following details:
- Badge: Leave this field blank
- System Item: Select Custom from the drop-down list
- Selected Image: icon-explore-on
- Title Position: Select Default Position from the drop-down list
- In the Tab Bar Item, enter the following details:
-
- In the Bar Item, enter the following details:
- Title: Type Explore in this field
- Image: icon-explore-off
- Tag: Enter 0 in this field
- Enabled: This checkbox should be checked
- In the Bar Item, enter the following details:
- Select Item 2 with the blue star to the left of it in the OUTLINE VIEW, and the Attributes inspector should already be open:
![](assets/3ac2d2c6-4267-498e-a117-dc6ff2c8333d.png)
- Add the following to the panel:
-
- In the Tab Bar Item, enter the following details:
- Badge: Leave this field blank
- System Item: Select Custom from the drop-down list
- Selected Image: icon-map-on
- Title Position: Select Default Position from the drop-down list
- In the Bar Item, enter the following details:
- Title: Type Map in this field
- Image: icon-map-off
- Tag: Enter 0 in this field
- Enabled: This checkbox should be checked
- In the Tab Bar Item, enter the following details:
- Run the project by hitting the play button (or use command + R) to see where we are:
![](assets/335789c4-5a07-44ce-89e1-ad039018827d.png)
As you may have noticed, this screen does not look like an app. Since we are building a Tab Bar Controller from scratch, we need to add an entry point. So, close the simulator, and continue with the steps.
- Select Main.storyboard again in the OUTLINE VIEW, and make sure that the disclosure arrow is down for Tab Bar Controller Scene:
![](assets/e855f8ea-fb9b-4d36-9343-f248b2f5ba4e.png)
- Select Tab Bar Controller under Tab Bar Controller Scene, and, in the UTILITIES PANEL, make sure that the Attributes inspector is selected:
![](assets/1a85e989-9d74-4fdf-a39a-2b86cdc907af.png)
- Under the View Controller section, you will need to check the box for Is Initial View Controller:
![](assets/aacc3f66-5147-4ae5-b536-2b3b0c4792cb.png)
- Once you set the initial View Controller, there will be an arrow pointing to the Tab Bar Controller. This arrow signifies the entry point of our app:
![](assets/09079ea2-5043-4341-9241-53adb88f0805.png)
- Let's rerun the project by hitting the play button (or use command + R):
![](assets/bb5bb485-987e-48b7-bccd-314978fc7e74.png)
Perfect! Now, with our basic structure established, we can start adding more specific elements to our views.