Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 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
  • 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,776 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,776 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    1 Answer

  • Mayank Chopra
    Mayank Chopra
    2,608 Points

    Nested declaration of Enum within Struct

    Posted February 9, 2015 10:42am by Mayank Chopra
    Mayank Chopra
    2,608 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

    0 Answers

  • 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

  • beomsu Kin
    beomsu Kin
    2,408 Points

    If I want to make a method that changes the status... what should I do?? func taskDoing(){self.status = .Doing}

    Posted January 14, 2015 1:38am by beomsu Kin
    beomsu Kin
    2,408 Points
    • iOS
    • Swift Enums and Structs
    • Structs and their Methods
    • Review and Final Exam

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

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