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 trialVictor O'Rourke
2,387 PointsWorking in Swift 4 and when i create the struct and try to use it in view controller it does not find the struct?
class ViewController: UIViewController { @IBOutlet weak var FunFactLabel: UILabel! let factprovider = FactProvider()
getting error unresolved identifier
2 Answers
Luis avila
1,609 PointsMaybe article could help you
Understanding The "Use of Unresolved Identifier" Error In Xcode
This article lists 3 ways you can solve the Use of unresolved identifier error. With these 3 methods you can fix 90% of the causes of the error.
https://learnappmaking.com/unresolved-identifier-understanding-xcode/
Victor O'Rourke
2,387 PointsI figured it out, weirdly enough when i create the additional file it did not put it under the app file structure. after removing it and re-adding it worked for me. Thanks!