Get started with app playgrounds in Swift Playgrounds on Mac
In Swift Playgrounds, you can start learning how to build apps by downloading and walking through the tutorials Get Started with Apps and Keep Going with Apps in the More Playgrounds window. You can use what you learn from those tutorials as a basis for building your own apps.
In the Swift Playgrounds app on your Mac, go to the More Playgrounds window.
If you’re in the My Playgrounds window, click See All near the bottom right.
If you’re working in a playground choose Window > My Playgrounds, then click See All near the bottom right.
Click a tutorial in the Learn to Code & Build Apps section to view a description. They’re designed to help you learn the basics of coding and prepare you to create apps of your own.
To see more tutorials, scroll right.
These tutorials are especially helpful for learning to create apps using SwiftUI:
Get Started with Apps: Learn the fundamentals of app building using SwiftUI, the framework used by professionals to create apps with beautiful user interfaces. Tutorials walk you through how to declare views, place images and text, deploy useful modifiers, and understand the power of composability.
Keep Going with Apps: Build on the fundamentals you learned in Get Started with Apps. Learn to use SwiftUI to manage your app state and automatically update your app UI based on state changes; learn how to navigate between different views in an app and share data across those views; learn more about how to manage view layout using padding, spacers, and alignment.
Click to return to the More Playgrounds window, then click Get to download the playground to your Mac.
Double-click the playground to open it.
When you want to look at more sample code, you can download and open the apps in the App Gallery section. The results of the code in an app appear automatically in the App Preview on the right side of the window. (If you don’t see the App Preview, click at the top right.)
To learn about a code element in the coding area, Control-click it, then choose Help (if it’s available).
When you’re ready, try adding your own code in an app to see how the App Preview changes.