Matthew's Dev Blog

An Xcode template for SwiftUI playgrounds

A while ago, I made an Xcode template for SwiftUI playgrounds, because Xcode still only comes with a UIKit template.

How to use it

  1. Clone the repo
  2. cd swiftui-playground-template
  3. make
  4. Open Xcode
  5. "File" -> "New" -> "Playground"
  6. Select "SwiftUI View"
Tagged with:

First published 18 December 2021