Please enable JavaScript.
Coggle requires JavaScript to display documents.
(WeatherViewController, Model) - Coggle Diagram
WeatherViewController
TF Delegate Methods
SearchPressed
return pressed
TFshould end edit
TextfieldDidEndEdit
WheatherManagerDelegate
updateView (fluxo final)
failWithError
CoreLocationDelegate
get Locations.last
didFailWithError
Model
WeatherManager
protocol
didFailWithError
DidUpdateWeather
Create URL String
With Coordinate
With city name
Perform Request
Create URL
Create Session
dataTask
Task.Resume
call Parse Data
CallUpdateWeather with parsed data
ParseJSON
Create Decoder
decoder.Decode
get the information using WeatherData structure
Create WeatherModel object with only the necessary information
WeatherModel
String Format
Computed Property