OneBusAway / onebusaway-iphone

OBA development has moved!
https://github.com/OneBusAway/OBAKit
Apache License 2.0
219 stars 117 forks source link

Show weather forecasts in Fahrenheit or celsius, depending on user's settings #1421

Closed aaronbrethorst closed 5 years ago

aaronbrethorst commented 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?.

Verification:

Let’s say that the current temperature is 68ºF.