Become a MacRumors Supporter for $25/year with no ads, private forums, and more!
  • Did you order new AirTags? We've opened a dedicated AirTags forum.

MacRumors

macrumors bot
Original poster
Apr 12, 2001
52,446
14,144



TestFlight users who have signed up to beta test Apple's Swift Playgrounds coding app can now download the Swift Playgrounds 3.0 Beta, which is available as of this morning. Swift Playgrounds uses Swift 5.0, the beta version of Apple's coding language.

The full extent of what's new in Swift Playgrounds 3.0 isn't clear as of yet, but Apple's release notes for the beta update provide a bit of detail. The new version of the app allows Playground Books to contain directories of Swift code and resources that can be imported for use by any page in the book.

swiftplaygrounds-800x600.jpg

Modules in a book's Modules directory can also be imported to any page in the book. Apple's release notes for the update are below:
New in Swift Playgrounds 3.0 Beta:
Playground Books can now contain directories of Swift code and resources that can be imported for use by any page in that book.

The ./Contents/UserModules/UserCode.playgroundmodule/Sources/UserSource.swift file is editable by users using the new source editor tab.

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 beta uses Swift 5 (swiftlang-1001.0.63.8). Code written using other versions of Swift may not work in UserModuleExample.playgroundbook.

Known Issues in Swift Playgrounds 3.0 Beta:

- A playground may get stuck executing when live issues are present. (47896251)

Workaround: Resolve the live issue, return to the document browser and open the playground again.

- A playground may get stuck after recording a movie. (42903135)

Workaround: Force close Swift Playgrounds from the App Switcher, then relaunch the app and open the playground again.
TestFlight users who previously signed up to beta test Swift Playgrounds have access to the beta, but it does not appear that Apple is allowing new testers to sign up at this time.

This is the first beta of Swift Playgrounds 3.0 that Apple has released. The current version of the app available to the public is version 2.2, released back in November.

Article Link: Apple Releases First Swift Playgrounds 3.0 Beta
 

guzhogi

macrumors 68040
Aug 31, 2003
3,300
1,240
Wherever my feet take me…
I must have OCD or something. Seeing the example code in that screenshot makes me wish it was
Code:
move(direction: forward; numberSpaces: 3)

I know, I'm weird.

Besides that, I just wish Apple would move Xcode to the iPad. Seems like Apple focuses more on iOS than on macOS.
 
Comment

cmChimera

macrumors 601
Feb 12, 2010
4,018
2,900
Are they ever planning to update the Mac playgrounds? I don’t have an iPad.
 
Comment

gsmornot

macrumors 68040
Sep 29, 2014
3,337
3,087
How do I sign up? I have TestFlight and a developer account.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.