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

What am I missing for this code challenge?

Properties

class Temperature {
    var celsius: Double = 0.0
    var fahrenheit: Double

    init(celsius: Double, fahrenheit: Double) {
      self.celsius = celsius
      self.fahrenheit = fahrenheit
}

Hi Tyree,

I fixed your code formatting which is the reason for the below comments, you can read more about posting code to the forum at the below link.

https://teamtreehouse.com/forum/posting-code-to-the-forum

As for the question at hand which challenge is this for?

This is for the object oriented swift computed properties

1 Answer

Not sure if your code was just copied in wrongly, but you are missing a closing square bracket in the code fragment you have put in your question.

Hope this helps.

not sure why it copied like that but I had the closing bracket