Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!

Thanks Andres! Good one!

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