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?

Answered by Claude31 in 761049022

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
Accepted Answer

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
Multiple SwiftUI Views in Swift Playgrounds
 
 
Q