Home/Q&A/Swift Playgrounds on a rented Mac: should I learn it or Xcode first?

Swift Playgrounds on a rented Mac: should I learn it or Xcode first?

Updated · airankrush

Direct answer

Yes. Swift Playgrounds has a Mac version, installed from the App Store. Complete beginners can start with it; people following an Xcode-based course can go straight to Xcode.

Basis

  • Apple's website presents it as an app for iPad and Mac for learning to code and building apps with Swift. (The website has recently been calling it Swift Playground, while Swift Playgrounds still appears in the App Store and the user guide; they are the same thing.)
  • The website states that the Mac version is built with Mac Catalyst, so you can edit exactly the same code on iPad and Mac, and that an app project made with it can also be opened in Xcode on a Mac for a fuller editing experience. So learning it first is not wasted effort; your projects carry over into Xcode.
  • Its content falls into two kinds: learning courses with levels and explanations, suited to people who have never written code; and app projects, where you build an app from scratch using SwiftUI and watch the preview as you write.
  • It is much lighter than Xcode, quick to install and simple to look at. Operating a lightweight app in remote desktop is less likely to feel sluggish than operating a large application like Xcode.

Information as of .

Boundaries: when the answer is different

If you only plan to use Swift Playgrounds, will not touch Xcode in the near future, and happen to have an iPad at hand, there is no need to rent a Mac; learn on the iPad. It does not replace everything Xcode does. Apple has not published the specific differences as a list, so go by the official product page; when a course explicitly requires Xcode, follow the course.

How to do it

  1. Open the App Store on the remote Mac and sign in with an Apple Account kept just for learning.
  2. Search for Swift Playgrounds and install it, and confirm that Find My Mac stays turned off.
  3. Start with the built-in beginner course and work through the first few chapters in order.
  4. Once you are comfortable with the syntax, create an app project and build a simple screen by following a tutorial.
  5. When you want to go further, open the project in Xcode and continue learning there.

Use case

This question belongs to the use case: Learn Swift and Xcode without a Mac? Rent to try it or take a course; buy if it's for years

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A