O'Reilly logo

OS X App Development with CloudKit and Swift by Bruce Wade

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required