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 Build an Interactive Story App with Swift Creating a Story Story Segments as Enum Members

Andres Aguero
Andres Aguero
30,545 Points

Code Snippet for Story's text

It seems as if Pasan forgot to include the story's text code snippet. I created the text code file and placed it here -> https://gist.github.com/andresaguero10/7c8c5156f9075a7d37de7ddea2cca129

?

Erik Perez
Erik Perez
5,410 Points

Major thanks for sharing it Andres. You're great!

Yuqing Lu
Yuqing Lu
7,032 Points

Thank you, Andres! nice job!

Thanks a lot, Andres!

4 Answers

Jack Yi
Jack Yi
8,450 Points

Wow, thanks Andres!

Grabbing the snippet from Andres Aguero's post is definitely the best/easiest solution (thanks!); alternatively, you can find the story code in the Story.swift file included in the project files .zip (under 'Downloads')...

The link for the story text was on the teacher's notes of the next video - https://gist.github.com/Pasanpr/8ddab759e4d7544bab622fae64890f7a