🤑 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
  • 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.

    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.