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 Intermediate Swift Properties Type Properties

Richard Pitts
PLUS
Richard Pitts
Courses Plus Student 1,243 Points

asd

I thought I got it right

game.swift
// Enter your code below
struct LevelTracker {
  static maxLevel = 4 }
Jason Anders
Jason Anders
Treehouse Moderator 145,860 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.

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