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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.