Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Object-Oriented Swift Classes and Objects From Structs to Classes

strct initializer ?!

Hello every one :) in last challenge of enums Amit specified an initializer why did he do that while Struct is already initialized by default?

struct ToDo { var Task : String init (todo1: String) { self.Task = todo1 } func weeklyplanner () ->(String){ return self.Task

}

} var tasks = ToDo (todo1: " try , learn , applay ")

Status1 (Status.pending)

thats what i'm talking about !