🤑 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

  • 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
  • Tommy Grabara
    PLUS
    Tommy Grabara
    Courses Plus Student 437 Points

    IOS Swift Enums Why would be a use case of creating instance of Enum?

    Posted May 17, 2016 6:03pm by Tommy Grabara
    Tommy Grabara
    Courses Plus Student 437 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    0 Answers

  • Nick Radford
    Nick Radford
    2,610 Points

    Enum init() doesn't seem to return an optional in Swift 2

    Posted October 22, 2015 6:42am by Nick Radford
    Nick Radford
    2,610 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    1 Answer

  • Sebastian Lofaro
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Sebastian Lofaro
    Front End Web Development Techdegree Graduate 29,101 Points

    results pane

    Posted September 29, 2015 5:53pm by Sebastian Lofaro
    .a{fill-rule:evenodd;}techdegree seal-36
    Sebastian Lofaro
    Front End Web Development Techdegree Graduate 29,101 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    1 Answer

  • boris said
    boris said
    3,607 Points

    rawvalue is being treated as a member in the enum how do i stop it

    Posted September 4, 2015 1:10pm by boris said
    boris said
    3,607 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    2 Answers

  • Rob Bartlett
    Rob Bartlett
    6,741 Points

    Extending the Example

    Posted August 19, 2015 3:16am by Rob Bartlett
    Rob Bartlett
    6,741 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    2 Answers

  • Jonathan Mitchell
    Jonathan Mitchell
    1,209 Points

    Can you assign multiple types to each mem

    Posted August 14, 2015 8:34pm by Jonathan Mitchell
    Jonathan Mitchell
    1,209 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    1 Answer

  • Jaskirat Singh
    Jaskirat Singh
    1,652 Points

    Enum Raw Value

    Posted July 24, 2015 8:40pm by Jaskirat Singh
    Jaskirat Singh
    1,652 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    1 Answer

  • YuJin Ahn
    YuJin Ahn
    1,664 Points

    Curly braces on the right section?

    Posted July 21, 2015 6:22pm by YuJin Ahn
    YuJin Ahn
    1,664 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    0 Answers

  • Bryan Heredia
    Bryan Heredia
    5,369 Points

    Is there a way to assign more than 1 data type in swift?

    Posted June 28, 2015 2:14am by Bryan Heredia
    Bryan Heredia
    5,369 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    1 Answer

  • Nikhil Kanamarla
    Nikhil Kanamarla
    1,565 Points

    Tried to practice enums having trouble

    Posted June 21, 2015 10:39pm by Nikhil Kanamarla
    Nikhil Kanamarla
    1,565 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    1 Answer

  • Robin Nilsson
    Robin Nilsson
    3,783 Points

    Do you need to specify the enum type when creating a variable, or will it infer the type from the member?

    Posted April 11, 2015 3:46pm by Robin Nilsson
    Robin Nilsson
    3,783 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    1 Answer

  • Nick Schumacher
    Nick Schumacher
    2,729 Points

    I am getting an error message that says there is an int expected with the variable I am creating in the challenge.

    Posted April 6, 2015 4:41am by Nick Schumacher
    Nick Schumacher
    2,729 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    2 Answers

  • Oliver Powell
    Oliver Powell
    943 Points

    rawValue non-existent in version 6.0 ... fromRaw() and toRaw() are similar.

    Posted March 18, 2015 4:32pm by Oliver Powell
    Oliver Powell
    943 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    0 Answers

  • Kristof Kocsis
    Kristof Kocsis
    15,455 Points

    .rawWalue doesn't exist anymore?

    Posted March 11, 2015 5:34pm by Kristof Kocsis
    Kristof Kocsis
    15,455 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    2 Answers

  • Srinivasan Senthil
    Srinivasan Senthil
    2,266 Points

    Enumerations and Raw Value. Question please?

    Posted March 1, 2015 2:44am by Srinivasan Senthil
    Srinivasan Senthil
    2,266 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    3 Answers

  • Jimmy Auldridge
    Jimmy Auldridge
    11,578 Points

    Can enums accept raw values of another enum?

    Posted February 28, 2015 2:52am by Jimmy Auldridge
    Jimmy Auldridge
    11,578 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    0 Answers

  • Thomas Barlow
    PLUS
    Thomas Barlow
    Courses Plus Student 2,409 Points

    Can the raw value in the enum be updated outside the initial creation of the enum, like updated or added?

    Posted February 26, 2015 2:19pm by Thomas Barlow
    Thomas Barlow
    Courses Plus Student 2,409 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    1 Answer

  • Magnus Larsen
    PLUS
    Magnus Larsen
    Courses Plus Student 2,025 Points

    "'Day.Type' does not have a member named .rawValue"

    Posted January 12, 2015 2:12pm by Magnus Larsen
    Magnus Larsen
    Courses Plus Student 2,025 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    1 Answer

  • Jorge Escalante
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Jorge Escalante
    Front End Web Development Techdegree Student 2,080 Points

    what exactly is an instance ?

    Posted December 26, 2014 11:18pm by Jorge Escalante
    .a{fill-rule:evenodd;}techdegree
    Jorge Escalante
    Front End Web Development Techdegree Student 2,080 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and Raw Values

    3 Answers

  • Harry Tran
    Harry Tran
    10,618 Points

    rawValue or hashValue?

    Posted November 7, 2014 1:09am by Harry Tran
    Harry Tran
    10,618 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • Enum Members and 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.