Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

How to link up pages in swift playgrounds

Hi I've a got a struct in a file called User and I want the object to be used in all my swift playgrounds pages. So how do I link pages to other pages

1 Answer

Olivier Van hamme
Olivier Van hamme
5,418 Points

If you want to play around with objects , like classes and structs , without the need for the ViewController / the Assets folder / and the Main.storyboard scene :

STEP 1 : Create a new project , File > New > Project . STEP 2 : Choose macOS ( and not iOS ) . STEP 3 : Select the Command Line Tool .