Swift playground mac os

Содержание
  1. Swift Playgrounds
  2. Learn serious code. In a seriously fun way.
  3. Real Swift code. Real simple. Real playful.
  4. Conquer levels, puzzles, and coding concepts.
  5. Fundamentals of Swift.
  6. Master the basics, then step up to more challenges.
  7. A big world of playgrounds from a big community of developers.
  8. A new way to create code. On the best device for learning.
  9. QuickType and coding keyboard.
  10. Snippets Library.
  11. Touch to edit.
  12. Help is just a tap away.
  13. Jump-start your creativity with Starting Points.
  14. Explore your creations in full screen.
  15. See your code crawl, roll, or fly through the sky.
  16. Share your creation with a friend. Or the world.
  17. Take things to Xcode. Then take them further.
  18. Code is universal. So we teach it in many languages.
  19. Swift Playgrounds
  20. Learn to Code with Swift Playgrounds
  21. Learn and Explore
  22. Coding Concepts
  23. Real Swift. Real Frameworks.
  24. Experiment with Code
  25. Built for Touch
  26. Powerful on Mac
  27. Command Robots, Pilot Drones, and More
  28. Share Across Devices
  29. Author Your Own Content with Xcode
  30. Swift playground mac os
  31. What’s New
  32. Swift Playgrounds 3.3
  33. What’s New
  34. Resolved Issues
  35. Swift Playgrounds 3.2 for Mac
  36. What’s New
  37. Unique Features for Mac
  38. Known Issues
  39. Swift Playgrounds 3.2 for iPad
  40. What’s New
  41. Swift Playgrounds 3.1
  42. What’s New
  43. Known Issues
  44. Swift Playgrounds 3.0
  45. What’s New
  46. Known Issues
  47. Swift Playgrounds 2.2
  48. What’s New
  49. Known Issues
  50. Swift Playgrounds 2.1
  51. What’s New
  52. Known Issues
  53. Swift Playgrounds 2.0
  54. What’s New
  55. Known Issues
  56. Resolved Issues
  57. Swift Playgrounds 1.6.1
  58. What’s New
  59. Known Issues
  60. Swift Playgrounds 1.6
  61. What’s New
  62. Supported Configurations
  63. Known Issues
  64. Swift Playgrounds 1.5
  65. What’s New
  66. Swift Playgrounds 1.2
  67. What’s New
  68. Known Issues
  69. Swift Playgrounds 1.1
  70. What’s New

Swift Playgrounds

Learn serious code. In a seriously fun way.

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. Then take on a series of challenges and step up to more advanced playgrounds designed by Apple and other leading developers.

Robots and drones await your commands.
Now you can make robots do incredible things with code you write yourself. Learn to program connected devices like the Sphero SPRK+, LEGO® MINDSTORMS® EV3, and drones by Parrot, and watch them come alive right before your eyes.

Real Swift code.
Real simple. Real playful.

Learning to code with Swift Playgrounds is incredibly engaging. The app comes with a complete set of Apple-designed lessons. Play your way through the basics in “Fundamentals of Swift” using real code to guide a character through a 3D world. Then move on to more advanced concepts.

What you see is what you code: Create code on the left side of your screen and instantly see the results on the right — with just a tap.

Conquer levels, puzzles, and coding concepts.

Starting with the “Fundamentals of Swift” lesson, you’ll tackle goals using the same code professional developers use every day. As you move along, more advanced concepts come into play. You’ll continually build on what you’ve learned and create even more complex code.

Fundamentals of Swift.

You’ll start out by learning the important concepts you need to understand code.

Master the basics,
then step up to more challenges.

In addition to the built-in library of lessons, Swift Playgrounds includes a collection of extra challenges — with new ones added over time. Go deeper on a topic you’ve already studied or try your hand at something new. You’re not just building fun creations, you’re building your skills, too.

A big world of playgrounds from a big community of developers.

Discover dozens of channels with fun new challenges created by leading developers and publishers. Subscribe to your favorites and you’ll receive their latest creations right in the app. Now there are no bounds to your playgrounds.

A new way to create code.
On the best device for learning.

Easily drag braces around code, wrap existing code in a loop, or choose from dozens of drag-and-drop snippets included in Swift Playgrounds — right from your iPad or Mac. Take full advantage of powerful Multi-Touch, multitasking, and split view capabilities on iPad. Also, enjoy the view from your Mac. The larger screen makes room for a new sidebar with a complete table of contents and quick access to other Swift files. Just tap, drag, or type text and numbers. Then interact with what you’ve created.

QuickType and coding keyboard.

Write an entire line of code with just a tap. With QuickType for code, the Shortcut Bar automatically and intelligently suggests commands as you go. When typing is the best option, iPad has an innovative keyboard designed for coding. Simply touch a key to access multiple characters, then drag to choose the one you want. Experience similar code suggestions on Mac, which comes with even more help to complete your code.

Snippets Library.

Quickly drag commonly used pieces of code from the Snippets Library to minimize typing.

Touch to edit.

Conveniently drag the boundaries of a statement around existing code.

Help is just a tap away.

If you come across a command that’s hard to understand, simply tap it and hold. A menu of options will appear. Choose the most relevant one and get the answer you need.

Jump-start your creativity with Starting Points.

Use what you’ve learned to create something brand new. With Starting Points, you can get a head start on more advanced coding, add multiple files to your playground at once, and use iPad features such as Multi-Touch interactions, accelerometer, and gyroscope. Personalize your project by adding graphics, audio, and more. Then easily share with friends, family, or the world. Students can also share code with classmates when teachers use Starting Points to create lessons.

Explore your creations in full screen.

Immerse yourself by using the vivid Retina displays of iPad or Mac. Simply tap the center divider, then drag to view your code or live project on the full screen. You can also customize built-in games like Battleship and Brick Breaker, then immerse yourself by letting them take up the whole screen.

See your code crawl, roll, or fly through the sky.

Watch your code spring to life by programming real robots, musical instruments, and drones. The Accessories channel is filled with engaging playgrounds that let you configure and control popular educational toys like LEGO® MINDSTORMS® EV3. And that’s just the beginning.

Читайте также:  Популярность линукс дистрибутивов диаграмма

Sphero playgrounds let you guide this spherical robot through tricky courses, accelerate over jumps, and change colors.

Dash playgrounds challenge you to make it sing, dance and respond to sensor inputs to react to their environment.

MeeBot playgrounds guide you through coding Jimu Robot Meebot’s six robotic servo motors to make him move in lifelike ways. Or even dance.

Tello EDU playgrounds let you command multiple Tello drones to fly in a swarm, perform flips and other acrobatic movements, and push the limits of your creativity.

Explore robots, drones, and many other connected devices that support Swift Playgrounds.

Share your creation with
a friend. Or the world.

Send your code to a friend’s iPad using Mail, Messages, or AirDrop. Your friends can view it in Swift Playgrounds and even build on it by adding their own twists. You can also post a video of your running program to the web for the world to see.

Take things to Xcode.
Then take them further.

Because you’re working with real code, you can import and export directly between Swift Playgrounds and Xcode. So you can try out your ideas with the tool pros use to develop iOS and Mac apps.

Code is universal. So we teach it in many languages.

Swift Playgrounds is now available in 15 languages — Castilian and Latin American Spanish, Brazilian Portuguese, Traditional and Simplified Chinese, English, German, French, Italian, Korean, Japanese, Thai, Turkish, Dutch, and Swedish. Because we believe that everybody, everywhere should be able to learn to code.

Swift Playgrounds

Everyone Can Code

A program that gives everyone the power to learn, write, and teach code.

App Development with Swift

A comprehensive guide that will help you build an app of your own from the ground up.

Teaching code in schools

Find out how Apple is making it easy to teach coding in your classroom.

Источник

Learn to Code with Swift Playgrounds

Swift Playgrounds is a revolutionary app for iPad and Mac that helps you learn and explore coding in Swift, the same powerful language used to create world-class apps for the App Store. Engaging lessons and challenges help students learn the core concepts of coding by writing real Swift code in an interactive environment.

Learn and Explore

In Swift Playgrounds, a single line of code can make amazing things happen. You’ll create small programs called “playgrounds” that instantly show the results of the code that you write. Interactive lessons teach key coding concepts, and additional challenges and starting points encourage you to explore code in exciting new ways to build unique creations. And third parties publish playgrounds you can use to control robots, drones, and other hardware accessories with Bluetooth. It’s easy to share your creations with friends, or record and post videos of your playgrounds in action.

Coding Concepts

Swift Playgrounds includes interactive lessons that use puzzles and experimentation to teach the following core coding concepts, and more:

  • Commands
  • Functions
  • Parameters
  • Loops
  • Conditional statements
  • Variables
  • Operators
  • Types
  • Initialization

Real Swift. Real Frameworks.

The Swift programming language was designed to be approachable enough to be your very first programming language. Swift is also incredibly powerful, used by professional developers to create over half a million apps on the App Store. Using Swift Playgrounds, you’ll be coding within minutes. Even as you become more proficient, you’ll never outgrow Swift.

Swift Playgrounds gives you access to key frameworks, such as UIKit, SpriteKit, Bluetooth, and Metal. Your code can directly interact with the iPad or Mac on which it runs. For instance, on iPad your playgrounds respond to touch gestures and interact with hardware, such as the accelerometer, gyroscope, and camera.

Experiment with Code

Sometimes the best way to learn is to explore on your own, and Swift Playgrounds is a great place to let your imagination run wild. In addition to the guided Learn to Code lessons, Swift Playgrounds includes many challenges, with new ones on the horizon, so you can keep coming back to try something new. Some challenges encourage you to play with code to create interesting effects, while others include engrossing puzzles that require all of your coding skills to solve.

Additional starting points included in Swift Playgrounds help you create playgrounds from scratch. With access to thousands of APIs in the iOS and macOS SDKs, you can create amazing playgrounds that explore the web, generate 3D worlds, experiment with physics, and much more.

Many playgrounds let you edit multiple Swift source files and add your own to the included modules to create infinitely powerful programs. Most playground files can be edited, extended, remixed, or completely reinvented. Collaborate with friends or reimagine them on your own.

Built for Touch

Swift Playgrounds for iPad was designed from the ground up for touch, so you can create entire programs with only a few taps on the screen. Unique coding features include:

  • QuickType for code. The Shortcut Bar intelligently presents the most likely next commands or values based on context. It’s easy to write entire lines of code without touching a keyboard.
  • Coding keyboard. When the time comes for typing, enter numbers and symbols commonly used in Swift coding by dragging your finger across a key to select one of the alternate symbols.
  • Touch to edit. Tap a color value to display a color picker or tap an image value to choose a photo from your library. You can even restructure your code by simply dragging a brace to wrap around the surrounding code.

Swift Playgrounds helps you write correct code by identifying mistakes as you type and offering suggestions to help correct the errors.

Powerful on Mac

Swift Playgrounds for Mac adds features that take advantage of the wide screen on Mac, and includes an always-available keyboard. Unique coding features for Mac include:

  • Code suggestions with help. Code suggestions appear with brief help so you can pick exactly the correct code.
  • Keyboard navigation. Press the Esc key to toggle between the editing area and the code suggestion list, so you never have take your fingers off the keyboard.
  • Sidebar. Expand the sidebar to reveal the complete list of pages, and jump anywhere within the playground. In more advanced content, quickly open supporting Swift files in additional editor tabs with a click.
Читайте также:  Windows 10 календарь не добавляет события

Code editing on Swift Playgrounds for Mac closely matches Xcode, the professional developer tool used to create apps for the App Store. And because both apps are on Mac, you can experiment with ideas in Swift Playgrounds and easily copy that code into Xcode.

Command Robots, Pilot Drones, and More

Swift Playgrounds includes accessories playgrounds that teach you how to use Swift code to command LEGO MINDSTORMS EV3 robots that you build, use iPad to guide a Sphero SPRK+ robot around the room, pilot a drone from Parrot or Tello, or even teach a MeeBot to dance. Swift Playgrounds includes guided lessons for each accessory, as well as template starting points you can use to write your own programs that control the following devices:

  • LEGO MINDSTORMS EV3
  • Sphero SPRK+
  • Drones by Parrot and Tello by Ryze
  • MeeBot by Jimu Robots
  • Dash by Wonder Workshop
  • Skoog musical instrument

Because Swift Playgrounds uses real Swift code with access to the Bluetooth radio on iPad and Mac, any developer can create a playground to connect to additional robots and and devices, then share them with the world.

Share Across Devices

Swift Playgrounds for Mac is built with Mac Catalyst, giving you the ability to edit the exact same playground file on iPad and Mac. iCloud Drive seamlessly shares your playgrounds, and changes you make on either iPad or Mac immediately appear on your other devices. It’s easy to start a project on iPad and open the file on Mac to keep coding. You can even open Xcode playgrounds in Swift Playgrounds for iPad to do some pro coding on the go.

Author Your Own Content with Xcode

If you’re an experienced developer, you can create incredible playgrounds to share with the next generation.

Swift Playgrounds authoring templates for Xcode can help you create powerful playground book files to publish as a subscription. The interactivity of playgrounds combined with the power of the iOS SDK and Mac Catalyst lets you express your creativity and skills in an entirely new way, create lessons that teach coding concepts, and employ fun, new approaches to content.

Swift Playgrounds for iPad

Download the Swift Playgrounds iPad app from the App Store for free.

Swift Playgrounds for Mac

Download the Swift Playgrounds Mac app from the App Store for free.

Developer Forums

Ask questions and discuss with Apple experts and other Apple developers.

Support

Get help with app installations, view release notes, and submit bugs.

Источник

Swift playground mac os

November 16, 2020

What’s New

  • The console area shows the output of print() statements.
  • Code suggestions appear much faster.
  • Export as a new playground to create custom lessons with a new reset point.

Swift Playgrounds 3.3

What’s New

  • Works with the new cursor support in iPadOS.
  • Updated Brick Breaker challenge has all new graphics and is more customizable.
  • Performance improvements and additional bug fixes.

Resolved Issues

  • Learn to Code no longer hangs or crashes when connected to a Bluetooth output device. (58015786)
  • Fixed an issue that could cause excess CPU use on macOS after opening a number of playgrounds in a short period of time or leaving the Live View sitting idle in some playgrounds. (59395922)
  • Fixed an issue that could result in some playgrounds being flagged as malicious and prevent them from running on macOS 10.15.4. (59689857)

Swift Playgrounds 3.2 for Mac

February 11, 2020

What’s New

  • Swift Playgrounds is now available for macOS Catalina in the Mac App Store.
  • Use the same playground files on macOS Catalina and iPadOS.

Unique Features for Mac

  • Code suggestion area also displays help for many available commands.
  • Sidebar shows a complete list of all pages and additional Swift files in a playground.
  • Touch Bar puts commands such as Run My Code at your fingertips.
  • Menu bar organizes available commands with keyboard shortcuts for common actions.

Known Issues

  • Live View elements are not accessible to VoiceOver if VoiceOver is enabled after opening the document. (56687963)
    • Workaround: Close the document, make sure VoiceOver is enabled, and reopen the document.
  • Learn to Code 1 and 2 may crash when connected to a Bluetooth output (58015786).
    • Workaround: Turn off “Sound effects” on the Audio button in the live view, or do not use Bluetooth.
  • Swift Playgrounds 3.2 uses Swift 5.1 (swiftlang-1100.0.270.13). Code written using other versions of Swift may not work in Swift Playgrounds 3.2.

Swift Playgrounds 3.2 for iPad

December 9, 2019

What’s New

  • Code suggestions appear faster.

Swift Playgrounds 3.1

What’s New

  • Use the new Dark Mode coding theme when running Dark Mode in iPadOS 13.
  • In Learn to Code, help Byte and friends explore their world at night when using Dark Mode in iPadOS 13.
  • Build with the SwiftUI framework in new playgrounds you create.
  • Includes Swift 5.1 and the iOS SDK.

Note: Swift Playgrounds 3.1 uses Swift 5.1 (swiftlang-1100.0.270.13). Code written using other versions of Swift may not work in Swift Playgrounds 3.1.

Known Issues

  • Subscribing to a feed through universal link hides the “Edit” and “Done” buttons in the document store. (55053548)

Workaround: Download a piece of content to continue using the app.

Swift Playgrounds 3.0

What’s New

  • Playground Books can now contain directories of Swift code that can be imported for use by any page in that book.
  • Files in ./Contents/UserModules/ are editable by users, using the new source editor tabs.
  • In addition, the modules in a book’s Modules directory .playgroundbook/Contents/Modules can be imported by any page in the book, but can’t be viewed or edited in the app.

Note: Swift Playgrounds 3.0 uses Swift 5 (swiftlang-1001.0.69.5). Code written using other versions of Swift may not work in UserModuleExample.playgroundbook.

Known Issues

  • Attempting to delete all of the shared Swift files in a module will result in an error for playgrounds that have been set to “Limited” mode by the author. Closing and reopening the document will fix the issue. (48727765)
  • Not all content may be updated to a supported Swift version. (47831096)
  • Playgrounds which use Swift 3 are no longer supported. Swift 4.2 is still supported. (50259764)

Swift Playgrounds 2.2

November 12, 2018

What’s New

  • More to Explore lets you browse and download content from your favorite third-party creators, directly within Swift Playgrounds.
  • Swift Playgrounds 2.2 supports the iOS 12 SDK.

Note: Swift Playgrounds 2.2 uses Swift 4.2 (swiftlang-1000.0.37.1). Code written using other versions of Swift may not work in Swift Playgrounds 2.2.

Читайте также:  Games windows live ошибка входа

Known Issues

  • Some playgrounds and third-party subscriptions may not yet be compatible with this release.
  • A playground may get stuck after recording a movie. A workaround is to force close Swift Playgrounds from the App Switcher, then relaunch the app and open the playground again.
  • The number keypad pop-over has been removed. The on-screen keyboard designed for Swift will auto-show instead.

Swift Playgrounds 2.1

What’s New

  • What’s Next suggests other playgrounds to try based on your progress so far.
  • Support for macOS content caching to speed downloads in networks with multiple Swift Playgrounds users.
  • Swift Playgrounds 2.1 supports the iOS 11.3 SDK.

Note: Swift Playgrounds 2.1 uses Swift 4.1 (902.0.48). Code written using other versions of Swift may not work in Swift Playgrounds 2.1.

Known Issues

  • A playground may get stuck while downloading.
    Workaround: Force close Swift Playgrounds from the App Switcher, then relaunch the app and download the playground again. For more information, see How to force an app to close on your iPhone, iPad, or iPod touch.

Swift Playgrounds 2.0

January 24, 2018

What’s New

  • Now you can subscribe to playgrounds from your favorite third-party creators, then browse and download their content directly within Swift Playgrounds.
  • Subscriptions automatically show new playgrounds when available and alert you to updates.
  • New robots including IBM’s TJBot and Mekamon are available from the Add Subscriptions button.
  • New content gallery shows all playgrounds including third-party subscriptions in a single view.
  • Documentation for iOS features and commands is now available from the Help button and the tools menu.
  • Locations button lets you open playgrounds from the Files app on your iPad.

Note: Third-party robot playgrounds previously included in the app are now available directly from their respective authors when you browse subscriptions. Playgrounds already downloaded from the Accessories tab using a previous version of Swift Playgrounds continue to be available on your iPad or in the Playgrounds folder in iCloud Drive.

Swift Playgrounds 2.0 supports the iOS 11.1 SDK.

Note: Swift Playgrounds 2.0 uses Swift 4.0.2 (900.0.69.2). Code written using other versions of Swift may not work in Swift Playgrounds 2.0.

For information on creating your own playgrounds and publishing a subscription on the web, please see Playground Book Format Reference.

Known Issues

  • Swift Playgrounds may freeze after heavy use on iOS 11.

Workaround: Restart iPad and open Swift Playgrounds

Resolved Issues

  • The “Take Picture” feature no longer produces an empty, white snapshot.

Swift Playgrounds 1.6.1

September 25, 2017

What’s New

  • Fixes an issue introduced in Swift Playgrounds 1.6 that would prevent some existing playgrounds from running. Learn to Code, the Hour of Code challenge, and most other playgrounds now work as expected. Some of the accessory playgrounds may require that you tap the New Playground button to get the latest version.

Known Issues

  • After updating to a new version of Swift Playgrounds the app may attempt to update your existing playground documents to work seamlessly with this new version. Normally, this happens transparently. For the playground to be updated it must be on the device when the app launches.

If you have a playground in iCloud, but not on the device, then that playground will not be updated until it is downloaded. A similar situation can arise if you receive an older playground via AirDrop or email. In both cases, these playgrounds will be updated after Swift Playgrounds fully closes and is then re-launched.

To trigger the update manually, force the Swift Playgrounds app to close and then re-launch it. Swift Playgrounds will then update all the playgrounds you have stored on your iPad. For information on how to force an app to close see the following article: https://support.apple.com/en-us/HT201330.

In rare cases, you will need to create a new version of the playground using the “New Playground” button. This will retrieve the latest version of the playground, compatible with your version of Swift Playgrounds.

Swift Playgrounds 1.6

September 19, 2017

What’s New

  • New Augmented Reality challenge uses ARKit to show the familiar Learn to Code characters within the real world.
  • You can now access the iPad camera from your code.
  • Errors in your code are more clearly explained.
  • Your code can take advantage of Swift 4 and the iOS 11 SDK.
  • New languages for the app and the Learn to Code 1 lessons include: Spanish (Spain), Italian, Dutch, Chinese (traditional), Korean, Swedish, Thai, Turkish, and Portuguese (Brazil).

Supported Configurations

  • Swift Playgrounds 1.6 uses Swift 4 (900.0.65), and code written using other versions of Swift may not work in Swift Playgrounds 1.6.
  • ARKit features require an iPad Pro or iPad (5th generation) running iOS 11.

Known Issues

The following AVFoundation APIs are not available:

  • AVCaptureDevice.Format.supportedColorSpaces
  • AVCaptureDevice.supportedFlashModes
  • AVCapturePhotoOutput.availablePhotoPixelFormatTypes
  • AVCapturePhotoOutput.availableRawPhotoPixelFormatTypes
  • AVCapturePhotoSettings.availablePreviewPhotoPixelFormatTypes

Swift Playgrounds 1.5

What’s New

Command robots, pilot drones, and make music with Swift code you write. The new Accessories tab includes immersive playgrounds and starter templates to build your own playgrounds for the following hardware devices:

  • LEGO MINDSTORMS EV3
  • Sphero SPRK+
  • Parrot drones Mambo, Rolling Spider, and Airborne
  • MeeBot by Jimu Robots
  • Dash by Wonder Workshop
  • Skoog musical instrument

Note: Swift Playgrounds 1.5 uses Swift 3.1 (802.0.53). Code written using other versions of Swift may not work in Swift Playgrounds 1.5.

Swift Playgrounds 1.2

What’s New

  • Swift Playgrounds is now localized for Latin American Spanish, French, German, Simplified Chinese, and Japanese.
  • You can now add and remove pages to playgrounds you created from scratch or from templates.
  • Support for Swift 3.1 has been added.

Note: Swift Playgrounds 1.2 uses Swift 3.1 (swiftlang-802.0.46). Code written using other versions of Swift may not work in Swift Playgrounds 1.2.

Known Issues

  • Code completion choices may display poorly if the active keyboard is Chinese or Japanese.

Swift Playgrounds 1.1

November 17, 2016

What’s New

  • Learn to Code 3 continues the guided learning experience as you help Blu explore the universe.
  • Hour of Code challenge gives a Byte-sized introduction to the Learn to Code lessons.
  • Step through your code to highlight each line as it is run.
  • Learn to Code now includes music and sound effects.
  • Notifications for new and updated content.

Note: Download new copies of Learn to Code from the Featured page to get the music, sound effects, and line highlighting features.

Источник

Оцените статью