🤑 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
  • Aubrey Clark
    Aubrey Clark
    4,159 Points

    Help? Doing the Final Exam and it keeps telling me "Return from initializer without initializing all stored properties"

    Posted February 19, 2016 5:16pm by Aubrey Clark
    Aubrey Clark
    4,159 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    2 Answers

  • boris said
    boris said
    3,607 Points

    Can somebody help me fix this error:use of unresolved identifier pending

    Posted September 15, 2015 1:33pm by boris said
    boris said
    3,607 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    2 Answers

  • Farid Rasoolzadeh Baghmisheh
    PLUS
    Farid Rasoolzadeh Baghmisheh
    Courses Plus Student 1,650 Points

    I did not initialise the enum, but made an init method in the struct where I initialise the status to .Pending. is OK?

    Posted August 19, 2015 11:28am by Farid Rasoolzadeh Baghmisheh
    Farid Rasoolzadeh Baghmisheh
    Courses Plus Student 1,650 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    1 Answer

  • Lawrence Yeo
    Lawrence Yeo
    3,236 Points

    Don't you have to unwrap the task.status enum value?

    Posted August 13, 2015 8:11am by Lawrence Yeo
    Lawrence Yeo
    3,236 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    1 Answer

  • Antonija Pek
    Antonija Pek
    5,819 Points

    How to see a value of Enum

    Posted July 20, 2015 1:05pm by Antonija Pek
    Antonija Pek
    5,819 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    2 Answers

  • bharath yelavatti
    bharath yelavatti
    617 Points

    can we have an enum inside a struct ?

    Posted July 18, 2015 2:38pm by bharath yelavatti
    bharath yelavatti
    617 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    1 Answer

  • Sam Mckenzie
    Sam Mckenzie
    646 Points

    Hi there! I was wondering when I should use a Struct instead of a Class? I can't really see a difference.

    Posted July 17, 2015 1:19pm by Sam Mckenzie
    Sam Mckenzie
    646 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    0 Answers

  • Dany Raoul
    Dany Raoul
    1,194 Points

    Enums vs Structs vs Arrays vs Dictionaries

    Posted July 15, 2015 9:22am by Dany Raoul
    Dany Raoul
    1,194 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    0 Answers

  • Joshua Rystedt
    Joshua Rystedt
    4,086 Points

    Help improve my code

    Posted June 13, 2015 3:09am by Joshua Rystedt
    Joshua Rystedt
    4,086 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    1 Answer

  • ant
    ant
    2,273 Points

    Can we add the enum in the struct?

    Posted April 29, 2015 11:36pm by ant
    ant
    2,273 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    3 Answers

  • David Perkins
    David Perkins
    2,028 Points

    Final Exam: Can we do this without initializing the struct?

    Posted April 15, 2015 9:00pm by David Perkins
    David Perkins
    2,028 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    1 Answer

  • wonderyak
    wonderyak
    12,485 Points

    Aside from scope, is there any reason that I'd _not_ want to declare the enum within the struct?

    Posted March 7, 2015 10:45pm by wonderyak
    wonderyak
    12,485 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    1 Answer

  • Di Lisa Giuseppe
    Di Lisa Giuseppe
    2,129 Points

    My possible solution :

    Posted February 7, 2015 8:11am by Di Lisa Giuseppe
    Di Lisa Giuseppe
    2,129 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    0 Answers

  • tytyty
    tytyty
    4,974 Points

    ToDo app final exam - Please tell me if I'm on the right track. I don't want to watch the video answer yet.

    Posted February 6, 2015 6:04am by tytyty
    tytyty
    4,974 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    1 Answer

  • Shawn Bolour
    Shawn Bolour
    2,423 Points

    In the teacher's notes I think you mean "two" not "to" properties description and status.

    Posted February 5, 2015 2:51pm by Shawn Bolour
    Shawn Bolour
    2,423 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    1 Answer

  • Adam Peruta
    Adam Peruta
    4,919 Points

    How to print out the status here?

    Posted February 1, 2015 6:01pm by Adam Peruta
    Adam Peruta
    4,919 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    2 Answers

  • McKenna Rowe
    McKenna Rowe
    2,930 Points

    I define var Status in my struct & an Xcode error says I must add a semicolon before the (): var status: Status;()

    Posted December 23, 2014 1:45am by McKenna Rowe
    McKenna Rowe
    2,930 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    3 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.