Multiple SwiftUI Views in Swift Playgrounds

Hello, i am working on my project for the Swift Student Challenge and it came to my attention that the project must be built using Swift Playgrounds. I have run into an issue where I want to add multiple views to my project but it seems i am unable. How am i supposed to do this?

Accepted Reply

You have to create a swiftpm project.

To do so:

  • open Xcode
  • create new project
  • select the template: iOS and then playground project
  • Now you can create as many views you want

Replies

You have to create a swiftpm project.

To do so:

  • open Xcode
  • create new project
  • select the template: iOS and then playground project
  • Now you can create as many views you want