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 ...
© Jesse Feiler 2017
Jesse Feiler, Exploring Swift Playgrounds, 10.1007/978-1-4842-2647-6_2
2. Creating a Simple Swift Playground on Xcode
(1)Plattsburgh, New York, USA