OneBusAway / onebusaway-ios

OneBusAway for iOS, written in Swift.
Other
82 stars 33 forks source link

Make the donations UI work on first app launch #704

Closed aaronbrethorst closed 9 months ago

aaronbrethorst commented 9 months ago

Fixes https://github.com/OneBusAway/onebusaway-ios/issues/703

The donations UI wasn't loading because the Obaco API Service was nil on first run (due to a region not being available yet). This fix addresses that issue by refreshing the Obaco API Service object that is passed to the DonationsManager any time it changes. It also DRYs up reloading API services in CoreApplication and provides a hook to perform actions after they're reloaded.