May 2016
Beginner to intermediate
145 pages
3h 21m
English
© Bruce Wade 2016
Bruce Wade, OS X App Development with CloudKit and Swift, 10.1007/978-1-4842-1880-8_6
Bruce Wade1
(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.
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, ...