Welcome to the Treehouse Community
Looking to learn something new?
Ludwing Najera4,596 Points
The Teacher's Notes don't seem to help... Stormy keeps crashing with a fatal error!
Stormy keeps crashing, and when I look at the Teachers Notes, they are the same as the code in stormy, but when ever i run it, i don't get Hexadecimal what-sits but an error in the console saying "fatal error: unexpectedly found nil while unwrapping an Optional value". Please help! Also, what does "unwrapping" and "optional values" mean?
Try checking if there's any space inside the URLs, mainly in the forecastURL constant if you copied coordinates from google maps
E.g.: Change this "37.8267, -122.423" to this "37.8267,-122.423"
This was my problem
Oliver Pinchbeck2,732 Points
An optional value is a value that can be something, or it can be nil (no value), so for example a variable of type string would be var: String = "empty" whereas an optional string would be var: String?
You need to unwrap an optional value in order to use it, which you do with a bang operator (!) or an if let statement.
Watch these videos, as Amit explains much more clearly than me... : https://teamtreehouse.com/library/swift-functions-and-optionals/optionals/what-is-an-optional