Apple’s easy to code application on the iPad Swift Playgrounds is now available on the Mac. The company released the app for iPad back in 2016 as an effort to teach Swift to students and offer a more interactive and visual interface of the code. By bringing the app to Mac, it will become easier for Mac users to try out the fun elements of Swift. 'Swift Playgrounds is a revolutionary app for iPad and Mac that makes learning Swift interactive and fun. It requires no coding knowledge, so it's perfect for students just starting out. Solve puzzles to master the basics using Swift - a powerful programming language created by Apple and used by the pros to build today's most popular apps. In a playground in the Swift Playgrounds app on your Mac, expand either the coding area or the live view to full screen by dragging the border between them. Use the shortcuts list To see code suggestions based on the code in your playground, click in the coding area. The code suggestions appear in the shortcuts list below the coding area. Swift Playgrounds Apple’s Swift Playgrounds application is now available on Mac. The app was originally released for the iPad in 2016, but now Apple has brought it to the Mac as well using its.
Swift Playgrounds User Guide
Swift Playground Download For Mac
In the Swift Playgrounds app , you enter code in the coding area on the left side of the screen. The easiest way to add code is to click a code suggestion in the shortcuts list below the coding area.
If you want to add code that’s not in the shortcuts list, you can type code or choose from a collection of commonly used code elements.
You can also use sample code that appears in a playground and use code in preexisting code modules.
Adjust the view
Most playgrounds have a coding area (where you enter code) and a live view, where you run your code to see the result. If you want more room to code, you can hide the live view, or if you only want to see the result, you can hide the coding area.
In a playground in the Swift Playgrounds app on your Mac, expand either the coding area or the live view to full screen by dragging the border between them.
![Swift Playground For Mac Swift Playground For Mac](https://ausever.weebly.com/uploads/1/2/4/8/124881526/398522111.jpg)
![Swift Playground For Mac Swift Playground For Mac](https://www.macobserver.com/wp-content/uploads/2017/03/swift-playgrounds-ipad-1200x630.jpg)
Use the shortcuts list
![Swift Playground For Mac Swift Playground For Mac](https://forums.macrumors.com/proxy.php?image=https%3A%2F%2Fimages.macrumors.com%2Farticle-new%2F2020%2F02%2Fswiftplaygroundsmac.jpg&hash=ffc6237480c52e0e2f41e76a64e173c8)
To see code suggestions based on the code in your playground, click in the coding area. The code suggestions appear in the shortcuts list below the coding area. You can click a shortcut to quickly insert it in your code at the cursor.
To use the shortcuts list in the Swift Playgrounds app on your Mac, click in the coding area to place the insertion point where you’d like to add the code.
Click a code suggestion in the shortcuts list.
The code appears in the playground at the cursor. If the code requires a variable name or value, these are highlighted in your code so you can quickly click and type to replace them.
Note: To compact the shortcuts list to make more room for your code, click .
See a collection of code elements
While you’re coding, you can open a collection of commonly used code elements and add them to your code.
![For For](https://www.imore.com/sites/imore.com/files/styles/xlarge/public/field/image/2016/07/ipad-pro-swift-playgrounds-hero.jpeg)
In the Swift Playgrounds app on your Mac, click in the coding area of your playground to place the insertion point where you want to add code, then click near the top right.
Click to see commonly used code elements, then click a code element to insert it.
Use sample code
Some playgrounds (for example, Sonic Workshop) have instructions with sample code on the right side of the screen. To page through the instructions, swipe them right or left.
In the Swift Playgrounds app on your Mac, to use sample code, drag it into the coding area. As you drag, the insertion point appears where the sample code is being placed.
To try the sample code and see what it does, click Run My Code at the bottom of the Live view.
Swift Playgrounds Download
Tip: To hide the instructions so you can see the live view, click in the upper-right corner of the instructions. To reopen the instructions, click .
Swift Playground Mac App Store
Add images and files
You can add your own images or files to a playground. For example, if you want to use a custom background image in a coding project, you can use one of your photos from the Photos app.
Swift Playgrounds For Pc
In a playground in the Swift Playgrounds app on your Mac, click near the top right.
Do any of the following:
Add an image: Click , then select an image. You can also click Insert From to select an image from iCloud Drive or the Finder, or click Photo Library to select a photo in your Photos app.
Add a file: Click , then select a file. You can also click Insert From to select a file from iCloud Drive or the Finder.
![](https://cdn-ak.f.st-hatena.com/images/fotolife/r/ruriatunifoefec/20200910/20200910011337.png)