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 trialdavid zere
293 PointsFailable init ? What class does he talk about it ?
Whats is it ? Was in taught on any other course ? Thanks
1 Answer
Jens Hagfeldt
16,548 PointsHey david
As Pasan mentioned in the video the failable initializer is needed due to that the image icon might not be reached and if so the default image should be used instead.
Make a habit out of checking the links provided in the teacher notes in the courses as the often clarify concepts that you might need further explanation about. I don't think there is any course here on treehouse on that topic specifically, although it is mentioned briefly in several courses like this.
But just as Pasan said in the video you can find more information about failable initializers, how they work and why they sometimes are needed here: https://developer.apple.com/swift/blog/?id=17