© Jesse Feiler 2017

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

2. Creating a Simple Swift Playground on Xcode

Jesse Feiler

(1)Plattsburgh, New York, USA

You can create playgrounds with Xcode on macOS or with the Playgrounds app on iPad. The code that you write works in either environment, and you can move it back and forth with a few minor formatting issues. This chapter helps you get started building a playground in Xcode. Remember, a playground is like a sandbox in that it is a safe area to work in without building an entire app. If you’re familiar with Xcode, much of this chapter will be familiar, but playgrounds are new to you, and so may be Swift. Or you may have a basic knowledge of Swift and playgrounds thanks ...

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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.