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 Helper Methods

Kapil Soni
Kapil Soni
2,612 Points

Why in Xcode there is error Popping up saying that enum case .some not found in type Page.Choice?

does Swift 4 made some changes to the enum .some and .none ? how should we find the changes if in swift 4 through documentation?

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi,

I'm not sure I understand your question. Swift 4(beta) isn't scheduled for release until later this fall (and hasn't been released early to my knowledge), so you are probably using Swift 3.

But without seeing all of your code / files, it is really difficult to help troubleshoot, otherwise.
If you could be more specific with what you are doing and the error you are receiving, plus posting your code (Please refer to the Markdown CheatSheet link below Post button for proper formatting of code blocks before posting) will help others be able to fully assist you.

Hopefully we can help you. :dizzy:

Kapil Soni
Kapil Soni
2,612 Points

Sorry i found that the xcode get upset sometime which make it spit wierd issues. the code works fine.

Kapil Soni
Kapil Soni
2,612 Points

Hi Jason, I need a help, I am having a difficult time visualizing what is happening in codes eg : - in this example, we created class Page then we use constant and assigned Story to it, initialize it, then when we use extension and created method it gets messed up , is their tools to visualize the code ? I had used a UML diagram but it's not that useful any other tool or any guide to master the code visualization in mind while reading and writing code?