Playgrounds and REPL in Xcode Much like Swift Playgrounds for iPad, playgrounds in Xcode make writing Swift code incredibly simple and fun. Type a line of code and the result appears immediately. You can then Quick Look the result from the side of your code, or pin that result directly below. The result view can display graphics, lists of results, or graphs of a value over time. You can open the Timeline Assistant to watch a complex view evolve and animate, great for experimenting with new UI code, or to play an animated SpriteKit scene as you code it. Read-Eval-Print-Loop (REPL). Fast and Powerful From its earliest conception, Swift was built to be fast. Swift is a successor to both the C and Objective-C languages. Designed for Safety Swift eliminates entire classes of unsafe code. Another safety feature is that by default Swift objects can never be nil. Objective-C Interoperability To get started with Swift, download Xcode and follow the tutorials available on the Resources tab.
Related: Teaching tech
• Creating Science Apps with and for K-12 Students Scott Garrigan