Skip to content
KnowledgeCity

Swift Intermediate: Swift Playgrounds

Explore programming methods in Swift Playgrounds
Preview the first lesson free — get full access to all 3 lessons.
Course: On-Demand
Intermediate Provider Mark Nair  3 Lessons ·  20m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

In this module, we’ll look at Swift Playgrounds. We’ll clarify the differences between Swift Playgrounds and Xcode Playgrounds. You’ll learn what Playgrounds gives you while you code and what benefits and extensibility Playgrounds offer you.

Playgrounds let you build quick code that you can evaluate and test without setting up a complex Xcode project. It’s a great tool to experiment and try out ideas quickly and easily. Swift Playgrounds comes with pre-made examples of fun and interesting projects, ready for your own experimentation and exploration.

You’ll learn about using live preview in Xcode playgrounds and how you can use this to mockup quick representations of your UI without having to start up a full project. You’ll also learn about using rendered markup inside of Playgrounds. These will help you build notes and navigation in your Playground file. This helps when you collaborate with other people or simply remind yourself of things using a more stylized display within your code compared to using inline comments.

What You'll Learn

  • Distinguish between Swift Playgrounds and Xcode Playgrounds
  • Build and evaluate quick code without setting up a complex Xcode project
  • Use live preview in Playgrounds to mock up quick representations of your UI
  • Apply rendered markup to build notes and navigation within a Playground file
  • Experiment with the pre-made example projects that ship with Swift Playgrounds

Key Takeaways

  • Playgrounds let you write quick code that you can evaluate and test without setting up a complex Xcode project.
  • Swift Playgrounds comes with pre-made examples of fun and interesting projects ready for experimentation and exploration.
  • Live preview in Xcode Playgrounds lets you mock up quick representations of your UI without starting a full project.
  • Rendered markup helps you build notes and navigation in your Playground file using a more stylized display than inline comments.
  • Rendered markup is useful when collaborating with others or reminding yourself of things within your code.

Frequently Asked Questions

What does this module cover?

This module covers Swift Playgrounds, including the differences between Swift Playgrounds and Xcode Playgrounds, using live preview in Playgrounds, and using rendered markup. The lessons are Playgrounds Overview, Using Live Preview in Playgrounds, and Using Rendered Markup.

What will I learn about live preview?

You will learn how live preview works within Playgrounds and how you can use it to mock up quick representations of your UI without having to start up a full project.

What is rendered markup used for in Playgrounds?

Rendered markup helps you build notes and navigation in your Playground file, providing a more stylized display within your code compared to inline comments, which is useful when collaborating with others or reminding yourself of things.

What skills does this course relate to?

This course relates to Apple Xcode, the Swift programming language, Swift 3D, and Xcodebuild.

Why use Playgrounds instead of a full Xcode project?

Playgrounds let you build quick code that you can evaluate and test without setting up a complex Xcode project, making it a great tool to experiment and try out ideas quickly and easily.