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 Swift Enums and Structs Enums Enum Members and Raw Values

It keeps giving me an error using code that looks correct to me. When i click Preview to see the error nothing appears.

As i said in the subject, I'm getting an error but when i click on Preview to see where i made the mistake, nothing appears. Moreover the code looks correct to me. Help me please :)

enum.swift
enum Speed: Int {
    case Slow = 10, Medium = 50, Fast = 100
}

var turtleSpeed = Speed.Slow.rawValue

2 Answers

Passed it using Firefox. It was not working with Safari (last version), at least for me.

I was in Chrome ... I'll try Safari too.

I just get communication errors in Safari. Won't work at all.

Odd. I just did the challenge and passed it with code that looks identical to yours:

enum Speed: Int {
    case Slow = 10, Medium = 50, Fast = 100
}

var turtleSpeed = Speed.Slow.rawValue