Swift Playgrounds 4+

Learn real coding the fun way

Apple

    • 3.7 • 490 Ratings
    • Free

iPad Screenshots

Description

Swift Playgrounds makes it fun to learn to code and build real apps. You solve interactive puzzles in the guided “Get Started with Code” and learn the basics of building apps in “Get Started with Apps.” You experiment with a wide range of challenges and samples that let you explore unique coding experiences.

Swift Playgrounds doesn’t require any coding experience — it’s perfect for anyone just starting out, from eight to one-hundred-and-eight. The whole time you are learning Swift and SwiftUI, the powerful programming technologies created by Apple and used by professionals around the globe to build many of today’s most popular apps. And because it’s built to take advantage of iPad and the real iOS SDK, Swift Playgrounds provides a one of a kind learning experience.

Lessons Built-in
• Apple-created lessons guide you through the core concepts of programming by using code to solve puzzles
• See your code run in a beautiful, interactive 3D world that you can rotate with a finger and pinch to zoom
• Animations introduce each new coding concept at a high-level before you dive into the puzzles
• Glossary and built-in help pages give detailed information about available commands, frameworks, and terminology

Explore and Create
• Interactive coding shows the results of your code instantly, alongside your work
• Step through code in playground books to highlight each line as it runs
• Books provide a head start to create your own playgrounds that use graphics, sound, and touch
• App Gallery walks you through the building blocks of apps, like tabbed navigation and receiving input from device sensors

Build Apps on iPad
• Create real apps on iPad using SwiftUI
• See your code changes reflected live while you type
• Type quickly and accurately with inline code suggestions
• Extend your app with an ecosystem of Swift packages
• Navigate your code with project-wide search

Smart Coding Assistance
• Touch and hold to grab any command and move it around to change the order of your code
• Drag a brace with your finger to wrap a block of code inside a loop or conditional statement
• Drag and drop snippets of commonly-used code directly into your playground
• Fix common code errors with helpful inline suggestions
• Stay organized with automatic code formatting

Real Swift, SwiftUI, and iOS Code
• Learn the same powerful Swift programming language used by the pros to create apps in the App Store
• Build dynamic, elegant apps using SwiftUI, a modern way to create user interfaces
• Access iOS frameworks such as SpriteKit for 2D games, SceneKit for 3D graphics, UIKit, and more
• Your code has direct control of iPad hardware, including the gyroscope, accelerometer, camera, and touch events

Share or Publish
• Send your projects to friends and family using Messages, Mail, AirDrop, or other Share Sheet extensions
• Bring your app projects to Xcode on Mac and back again
• Submit your completed apps to the App Store with App Store Connect

What’s New

Version 4.5

Swift Playgrounds 4.5 includes Swift 5.10 and the iOS 17.4 SDK, along with other features and bug fixes.

• Open Quickly helps you jump to any file or code symbol in your project
• Quick Actions gives you fast access to menu commands
• Jump to Line lets you navigate based on line numbers in your code

Ratings and Reviews

3.7 out of 5
490 Ratings

490 Ratings

Kazz728 ,

学習用には良い。ただし不安定さに注意。

プログラミングの勉強用、Swiftの勉強用にはとても良いと思います。

あと、まだ調べてませんが、iPadでiPhoneなどのアプリが開発、リリースできるようになったようです。もうMacは要らない・・・のかな。

ただし、ちょっと不安定なので完全な初心者やある程度経験がある人は逆に不具合にハマります。

不安定になると、描いているプログラムが間違っているわけじゃないのに、(1) 書いていることと異なる動作をしたり、(2) 間違っているわけじゃないのに、記述が正しくないとエラーになる。

どうやら記入できる場所以外に、見える編集箇所を全部消しても変わらない、内部の情報を持っているようで、ここがおかしくなると不具合になるような気がします。大体、「早く実行」「一番早く実行」などや、明らかに間違ってエラーを多発させると起こる気がします。

「ページを最初からやり直す」で内部のデータも初期化されるのか治ることが多い。でも、見えてる部分が正しいと確信していると、一から入力し直しなので躊躇してしまって泥沼にハマります。サクッとやり直しましょう。

不具合と思われることが2点。

(1) 「コードを学ぼう1」の「whileループ、ループをネストする」で、conditionで二重引用符を打ってしまうと、編集できる範囲外に二重引用符が表示されてしまい、消せなくなってしまう。これは「ページ を最初からやり直す」でないと治りませんでした。

(2) 「Bluの冒険」の、「楕円軌道」では、楕円軌道アニメーションを描きません。

iPad Pro 11 inch (512MB)です。iPadを再起ても、「ページを最初からやり直す」でも治りませんでした。Macの Playgroundsでは「同じデータで」ちゃんと楕円軌道を描きます。

改善希望:

(1) 速度が「一番早く実行」でも「コードを学ぼう2」の後半はかなりゆっくり、もう少し速いオプションも欲しい。特に習熟してくるとちょっとツライ。

(2) Mac版の場合、エラーの詳細表示と修正支援機能である「オーサリング・デバッグ・モード」が既定でオフでした。iPad版を使った後なのでわかりましたが、Mac版しか使っていないと全く気付かないかもしれません。オンの方が楽なので規定値を変えた方が良いのではないかと思いました。

waxchi ,

おもしろい

23歳ですがとても楽しんでいます。

全然レビュー関係ないんですが
「2つのループ」
と言うコースで
for i in 1...4{
while !isOnClosedSwitch || !isOnOpenSwitch {moveForward()}
if isOnClosedSwitch {toggleSwitch();turnRight();moveForward()}
else if isOnOpenSwitch {turnRight();moveForward()}}
とやっているんですがforの文を無くしてもスイッチの上で止まりません、歩き続けます。何故ですか
While !ClosedSwitch {moveForward()}に変えてやってもスイッチの上に途中でスキップしてスイッチだけ入れて右を向かずに終わります

あああああおこ ,

おお!

これ全部やればアプリ作れるわけじゃないけど、Swiftを初めからやってみたい人はこれでいいと思う。 Appleのアプリは「どうなっている」のかがこれでやんわりとわかると思います。 これである程度わかればMacでXcodeやり始めるのも簡単かと。 Swiftで一からプログラミングしたい人はまずこれですね。 追記9/22 iOS 15ですね! アプリを作れると聞いたのですが、変わっていません。 どう言うことでしょうか? 次のアップデートかな? 期待してます。 追加 アプデ来てました! アプリを作るテンプレもあり 非常に良いです! みなさん ぜひインスt(殴★ ボコボコボコッ o(`ω´ )o\ (つД`)ノ コイツデース おっとっと! でもいいアプリですよ〜ぜひインs… ボコッo(`ω´ )o ( ̄ー ̄)チーン

App Privacy

The developer, Apple, indicated that the app’s privacy practices may include handling of data as described below. For more information, see the developer’s privacy policy.

Data Not Linked to You

The following data may be collected but it is not linked to your identity:

  • Identifiers
  • Usage Data
  • Diagnostics

Privacy practices may vary, for example, based on the features you use or your age. Learn More

Featured In

More By This Developer

Apple Books
Books
Apple Podcasts
Entertainment
Find My Friends
Social Networking
Keynote
Productivity
iMovie
Photo & Video
GarageBand
Music

You Might Also Like

Code! Learn Swift Version
Education
Tinkercad
Education
Tynker: Coding for Kids
Education
Tayasui Sketches School
Education
EV3 Classroom LEGO® Education
Education
AR Makr
Education