Getting ready

To explore each of these access levels, we need to step outside our playground comfort zone and create a module. To hold our module and a playground that can use it, we will need to create an Xcode workspace:

  1. In Xcode, select File | New | Workspace... from the menu, as shown in the following screenshot:
  1. Give your Workspace a name, such as AccessControl, and choose a save location.
  1. You will now see an empty workspace:

In this workspace, we need to create a module, which represents something that tightly controls the information ...

Get Swift 4 Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.