Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 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
  • Victoria Haidamus
    Victoria Haidamus
    6,887 Points

    When I check my work for this code challenge it says that the enums are missing the associated values.

    Posted October 29, 2019 8:23pm by Victoria Haidamus
    Victoria Haidamus
    6,887 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    3 Answers

  • Shawn Tsou
    PLUS
    Shawn Tsou
    Courses Plus Student 2,281 Points

    What's wrong with this

    Posted January 4, 2019 7:44am by Shawn Tsou
    Shawn Tsou
    Courses Plus Student 2,281 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    1 Answer

  • Greg Hughes
    Greg Hughes
    225 Points

    I watched the video, if these aren't examples of associated values then what are?

    Posted November 21, 2018 1:33am by Greg Hughes
    Greg Hughes
    225 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    2 Answers

  • Randell Purington
    Randell Purington
    9,992 Points

    Please help

    Posted April 16, 2018 3:37am by Randell Purington
    Randell Purington
    9,992 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    1 Answer

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

    make sure your enum members contain associated values lol

    Posted February 25, 2018 3:23pm by Rea Rahhal
    Rea Rahhal
    Courses Plus Student 4,732 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    2 Answers

  • Tyler Clonts
    Tyler Clonts
    2,736 Points

    I dont think this challenge is working properly. Its not recognizing the String values im giving each case.

    Posted December 12, 2017 2:23am by Tyler Clonts
    Tyler Clonts
    2,736 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    0 Answers

  • connor hoare
    connor hoare
    7,933 Points

    This compiles in a playground but not letting me pass challenge

    Posted November 27, 2017 6:01pm by connor hoare
    connor hoare
    7,933 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    2 Answers

  • Joshua Hardy
    Joshua Hardy
    17,317 Points

    enum & associated values

    Posted May 26, 2017 3:44pm by Joshua Hardy
    Joshua Hardy
    17,317 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    1 Answer

  • perpetual makayi
    perpetual makayi
    8,441 Points

    enumerations and optionals swift 3

    Posted March 30, 2017 12:30pm by perpetual makayi
    perpetual makayi
    8,441 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    2 Answers

  • Vansh Agarwal
    PLUS
    Vansh Agarwal
    Courses Plus Student 3,965 Points

    I don't know why my code doesn't work.

    Posted March 26, 2017 7:58pm by Vansh Agarwal
    Vansh Agarwal
    Courses Plus Student 3,965 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    1 Answer

  • Rachel Ny
    Rachel Ny
    3,073 Points

    What does it mean to destructure something? I'm learning about enums and am very confused by this.

    Posted March 11, 2017 1:17am by Rachel Ny
    Rachel Ny
    3,073 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    0 Answers

  • Stella Lu
    Stella Lu
    1,004 Points

    What is wrong with this answer for this Enumerations & Optionals task?

    Posted February 7, 2017 10:32pm by Stella Lu
    Stella Lu
    1,004 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    1 Answer

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

    Tried and failed, what did I do wrong?

    Posted February 5, 2017 4:47pm by Richard Pitts
    Richard Pitts
    Courses Plus Student 1,243 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    1 Answer

  • kelly dickerson
    kelly dickerson
    5,412 Points

    Can't figure out what's wrong with my code for Mobile Phone enum challenge

    Posted February 4, 2017 4:27pm by kelly dickerson
    kelly dickerson
    5,412 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    1 Answer

  • Tywan Claxton
    Tywan Claxton
    8,397 Points

    Enums with Associated Values

    Posted January 25, 2017 8:49pm by Tywan Claxton
    Tywan Claxton
    8,397 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    1 Answer

  • Simon Rüba
    Simon Rüba
    5,659 Points

    There is a little mistake in this challenge. It says make an enum with 4 options but only 3 of them are listed.

    Posted December 7, 2016 8:39am by Simon Rüba
    Simon Rüba
    5,659 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    0 Answers

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

    enum MobilePhone { case iPhone(String) case Android(String) //case Blackberry(String) case WindowsPhone(Stri

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

    1 Answer

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

    enum MobilePhone { case iphone(String) case android(String) case blackBerry(String) case windowsPhone(String) } let iph

    Posted December 3, 2016 12:25am by Mackenzy Douyon
    .a{fill-rule:evenodd;}techdegree
    Mackenzy Douyon
    iOS Development Techdegree Student 2,913 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    0 Answers

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

    enum MobilePhone { case iPhone(String) case Android(String) case Blackberry(String) case WindowsPhon

    Posted December 2, 2016 6:41pm by Mackenzy Douyon
    .a{fill-rule:evenodd;}techdegree
    Mackenzy Douyon
    iOS Development Techdegree Student 2,913 Points
    • iOS
    • Enumerations and Optionals in Swift
    • Introduction to Enumerations
    • Enums with Associated Values

    4 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