官术网_书友最值得收藏!

The Utilities panel (located to the right)

The Utilities panel gives us extra options to configure each active element. At the bottom part, we have sections with various templates which we can use in our development process.

At the top, there are two tabs. The first one is called File inspector. It's denoted with an icon like a new blank page. This tab shows information about the selected file. You can find information where the file is located on the hard drive and a few other options, as shown here:

We see the file location of the playground project. Also, it's using iOS as a platform and we can change that by picking another platform from the list. We can enable text markup in the playground or disable it. The markup will be discussed later in this chapter.

The second tab is called Quick Help Inspector. It provides extra contextual information based on the last, focused item in the editor. It's really handy when using a public interface (API) from Apple or any other third-party well-written (documented) library. We will learn more about external libraries and how to use them later in this book.

The number of tabs is more than two, when the project is a regular mobile app. Don't feel that we are skipping them; we will discuss them when they appear.

At the bottom of the Utilities panel, there is another section, which contains several tabs. This part contains different templates:

  • The first is the File Template Library, which can be used to add different files to a project
  • The next is the Code Snippet Library, which contains different code snippets
  • After that is the Object Library,  a collection of objects which can be added to a storyboard
  • Finally, there is the Media Library,  a list of all media items, which are part of your project or workspace

These panels are there to save you time when looking for something in your project. There is a neat filter function at the very bottom. Here is a screenshot that shows you how to get access to a list of all Swift code templates:

There is a small icon to the left of the filter text field. It switches between a list and grid view of the template tabs:

Next, we discuss the preferences of the IDE, so we can match our personal preferences.

主站蜘蛛池模板: 云浮市| 米脂县| 灵宝市| 肥西县| 天全县| 上饶县| 安化县| 乐平市| 南丰县| 瑞丽市| 吉安县| 茌平县| 北宁市| 清镇市| 嘉兴市| 元氏县| 焦作市| 缙云县| 塔河县| 蒲江县| 新乐市| 延庆县| 油尖旺区| 汽车| 屏东市| 扶沟县| 山阳县| 广昌县| 永城市| 德格县| 大庆市| 湄潭县| 忻州市| 奈曼旗| 海伦市| 东丽区| 彝良县| 葫芦岛市| 揭西县| 晋城| 调兵山市|