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

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

New No-Code Track! 🚀start learning today!

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

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

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

  • 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
    • 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
  • 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
    • Showing results for:
    • iOS
    • Enumerations and Optionals in Swift
    • Objects and Optionals
    • Enums with Raw Values
    • Close
  • Steffen Alexander Ness
    Steffen Alexander Ness
    11,076 Points

    Enum rawValue code does not pass

    Posted on Dec 3, 2018 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 on Sep 24, 2018 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 on May 12, 2018 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 on Apr 17, 2018 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 on Feb 26, 2018 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 on Feb 3, 2018 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 on Jan 17, 2018 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 on Dec 14, 2017 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 on Aug 22, 2017 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 on Jul 27, 2017 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 on Mar 21, 2017 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 on Mar 15, 2017 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 on Mar 7, 2017 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 on Feb 10, 2017 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 on Feb 6, 2017 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 on Jan 9, 2017 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 on Dec 3, 2016 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.