✨ 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
    • Introduction to Enumerations
    • Enums with Associated Values
    • Close
  • 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 on Oct 29, 2019 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 on Jan 4, 2019 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 on Nov 21, 2018 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 on Apr 16, 2018 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 on Feb 25, 2018 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 on Dec 12, 2017 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 on Nov 27, 2017 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 on May 26, 2017 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 on Mar 30, 2017 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 on Mar 26, 2017 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 on Mar 11, 2017 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 on Feb 7, 2017 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 on Feb 5, 2017 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 on Feb 4, 2017 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 on Jan 25, 2017 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 on Dec 7, 2016 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 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
    • 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 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
    • 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 on Dec 2, 2016 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.