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