© Bruce Wade 2016

Bruce Wade, OS X App Development with CloudKit and Swift, 10.1007/978-1-4842-1880-8_6

6. Refining Our Prototype

Bruce Wade

(1)Suite No. 1408, North Vancouver, British Columbia, Canada

In this chapter we will load the test data we created in CloudKit into our app. The app will show the list of parks, and when a user clicks on a park the app will display the park information inside the details plane.

Creating the Park Model

With CloudKit being only a transport layer, we need a way to store and work with our information on the OS X client app. We need to create a simple Swift class Park that will store the information for an individual park. We will use the Swift class in a Swift list to store a list of parks. Create a new Swift file, ...

Get OS X App Development with CloudKit and Swift 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.