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 trialBenjamin Arredondo
5,162 PointsUse of undeclared type "Coordinate" Error
I was wondering if someone could help me out with this. I am following this video to get the user's location, but using Swift 3 instead of Swift 2. When I get to the point of using Coordinate to get the longitude and latitude from the last location update, I get the error "Use of undeclared type 'Coordinate'". Does anybody know how to fix this issue?
Thanks!
1 Answer
Miles Ranisavljevic
3,591 PointsIt should be 'coordinate' with a lower-case 'c'. In general, all variables and functions in swift start with a lower-case letter, and only names of classes, structs, enums, etc. are capitalized.