Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Steffen Alexander Ness
    Steffen Alexander Ness
    11,076 Points

    Enum rawValue code does not pass

    Posted December 3, 2018 10:58am by Steffen Alexander Ness
    Steffen Alexander Ness
    11,076 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Saleh Bubishate
    Saleh Bubishate
    1,613 Points

    why this is wrong? I tried that in the xcode and it's working

    Posted September 24, 2018 9:44am by Saleh Bubishate
    Saleh Bubishate
    1,613 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    2 Answers

  • Nev Wood
    PLUS
    Nev Wood
    Courses Plus Student 5,793 Points

    What does "using a raw value with Compass' initializer method" mean in this challenge?

    Posted May 12, 2018 3:53pm by Nev Wood
    Nev Wood
    Courses Plus Student 5,793 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    2 Answers

  • Anusha Singh
    PLUS
    Anusha Singh
    Courses Plus Student 22,106 Points

    [SOLVED] Please help!!!!

    Posted April 17, 2018 4:14am by Anusha Singh
    Anusha Singh
    Courses Plus Student 22,106 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    3 Answers

  • Rea Rahhal
    PLUS
    Rea Rahhal
    Courses Plus Student 4,732 Points

    your code could not be compiled... what's wrong here?

    Posted February 26, 2018 9:34am by Rea Rahhal
    Rea Rahhal
    Courses Plus Student 4,732 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Sam Belcher
    Sam Belcher
    3,719 Points

    Enums With Raw Values (Swift)

    Posted February 3, 2018 9:19pm by Sam Belcher
    Sam Belcher
    3,719 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Niilo Pirttijärvi
    PLUS
    Niilo Pirttijärvi
    Courses Plus Student 2,354 Points

    When do I use . and when ()?

    Posted January 17, 2018 1:58pm by Niilo Pirttijärvi
    Niilo Pirttijärvi
    Courses Plus Student 2,354 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Roop P
    PLUS
    Roop P
    Courses Plus Student 6,937 Points

    Not clear what I am missing. seems to be correct code

    Posted December 14, 2017 7:19pm by Roop P
    Roop P
    Courses Plus Student 6,937 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Chase Maddox
    PLUS
    Chase Maddox
    Courses Plus Student 5,461 Points

    Enum Compass Code Challenge

    Posted August 22, 2017 4:41pm by Chase Maddox
    Chase Maddox
    Courses Plus Student 5,461 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    5 Answers

  • Lana Wong
    Lana Wong
    3,968 Points

    I do not understand why my enum initializer isn't working?

    Posted July 27, 2017 4:55am by Lana Wong
    Lana Wong
    3,968 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Raghav Sharma
    Raghav Sharma
    2,207 Points

    Why is the code not correct? Am I missing something?

    Posted March 21, 2017 3:55pm by Raghav Sharma
    Raghav Sharma
    2,207 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Tyler Dotson
    PLUS
    Tyler Dotson
    Courses Plus Student 1,740 Points

    why doesn't this work?

    Posted March 15, 2017 4:07pm by Tyler Dotson
    Tyler Dotson
    Courses Plus Student 1,740 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    2 Answers

  • Nitin Kakkar
    Nitin Kakkar
    5,223 Points

    Exercise Enum with raw values, exercise checker indicate that there are compile errors but code compiles fine

    Posted March 7, 2017 2:28pm by Nitin Kakkar
    Nitin Kakkar
    5,223 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Raphael Reiter
    Raphael Reiter
    6,820 Points

    enums with raw values code challenge

    Posted February 10, 2017 10:27am by Raphael Reiter
    Raphael Reiter
    6,820 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    3 Answers

  • Richard Pitts
    PLUS
    Richard Pitts
    Courses Plus Student 1,243 Points

    Thought this was correct?

    Posted February 6, 2017 2:55pm by Richard Pitts
    Richard Pitts
    Courses Plus Student 1,243 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Mehran Moradi
    Mehran Moradi
    11,140 Points

    Please Help

    Posted January 9, 2017 9:16pm by Mehran Moradi
    Mehran Moradi
    11,140 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Mackenzy Douyon
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Mackenzy Douyon
    iOS Development Techdegree Student 2,913 Points

    enum Compass: Int { case North = 1 case South case East case West } let direction = Compass(rawValue:

    Posted December 3, 2016 2:37pm by Mackenzy Douyon
    .a{fill-rule:evenodd;}techdegree
    Mackenzy Douyon
    iOS Development Techdegree Student 2,913 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord