Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Intermediate Swift Properties Type Properties

Richard Pitts
Richard Pitts
Courses Plus Student 1,243 Points


I thought I got it right

// Enter your code below
struct LevelTracker {
  static maxLevel = 4 }
Jason Anders
Jason Anders
Treehouse Moderator 145,624 Points

Could you please clarify your question and the title ("asd" is not an acceptable title). You will need to include what the code is supposed to be doing and what error messages you are receiving. This will enable others in the community to be able to properly assist you.


Jason Anders Treehouse Community Moderator

1 Answer

Sam Baldwin
Sam Baldwin
7,018 Points

As you haven't specified a subject/title here, I can only guess at the problem here.

However, you have missed the let/var keyword between static and maxLevel. That would be one cause for this code to not compile.