Swift Playgrounds

Throughout this book, we have been using Swift Playgrounds to work through code examples as we explore the Swift language. Playgrounds are great for this use case, as they allow you to explore code and framework APIs without needing the infrastructure of an iOS, macOS, or tvOS app to execute the code.

Their features go beyond how we have used them so far in this book, and in this chapter, we will explore some of those features, from using additional code and resources to creating fully interactive experiences.

In this chapter, we will cover the following recipes:

  • Using Swift Playgrounds for UI
  • Importing resources into playgrounds
  • Importing code into playgrounds
  • Multi-page playgrounds
  • Using Swift Playgrounds on iPadOS

Get Swift Cookbook - Second Edition 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.