© Jesse Feiler 2017

Jesse Feiler, Exploring Swift Playgrounds, 10.1007/978-1-4842-2647-6_6

6. Entering Data and Viewing Results in Swift Playgrounds

Jesse Feiler

(1)Plattsburgh, New York, USA

You can use playgrounds to test your own code and try out experiments, but that’s just the beginning. Instead of experimenting by changing code and rerunning your playground, you can set it up so that you (or others) can enter data and then have the playground code act on the data.

To do that, you need to be able to control what is shown in the playground’s timeline and current view as it executes, and that’s what this chapter shows you how to do. You’ll see how to view a playground’s timeline and current view in Xcode as well as Playgrounds (the app on iPad). ...

Get Exploring Swift Playgrounds: The Fastest and Most Effective Way to Learn to Code and to Teach Others to Use Your Code now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.