Skip to main content

Creating a Simple Swift Playground on Xcode

  • Chapter
  • First Online:
Exploring Swift Playgrounds

Abstract

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 to the Playgrounds app on iPad. This chapter can help you get up to speed.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Jesse Feiler

About this chapter

Cite this chapter

Feiler, J. (2017). Creating a Simple Swift Playground on Xcode. In: Exploring Swift Playgrounds. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2647-6_2

Download citation

Publish with us

Policies and ethics