Closed aaronbrethorst closed 5 years ago
The map's displayed temperature unit should be determined by the user's system settings. The current value can be found as described in this SO answer: https://stackoverflow.com/questions/39727075/determine-users-temperature-unit-setting-on-ios-10-celsius-fahrenheit
I expect that you'll end up with a property on ForecastManager.swift: public var formattedCurrentTemperature: String?.
public var formattedCurrentTemperature: String?
Verification:
Let’s say that the current temperature is 68ºF.
formattedCurrentTemperature
== "20º"
== "68º"
nil
The map's displayed temperature unit should be determined by the user's system settings. The current value can be found as described in this SO answer: https://stackoverflow.com/questions/39727075/determine-users-temperature-unit-setting-on-ios-10-celsius-fahrenheit
I expect that you'll end up with a property on ForecastManager.swift:
public var formattedCurrentTemperature: String?
.Verification:
Let’s say that the current temperature is 68ºF.
formattedCurrentTemperature
should== "20º"
if the user’s locale specifies celsius.formattedCurrentTemperature
should== "68º"
if the user’s locale specifies fahrenheit.formattedCurrentTemperature
should benil