Skip to content

Commit

Permalink
the imperial distances to the nearest stations are shown
Browse files Browse the repository at this point in the history
  • Loading branch information
clrung committed Dec 12, 2016
1 parent 00e726e commit d931db6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion DCMetroWidget/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class SettingsViewController: NCWidgetListViewController {
chooseFromListTextField.stringValue = "or choose from the list"
for (index, radioButton) in stationRadioButtons.enumerated() {
radioButton.isHidden = false
stationRadioButtons[index].title = fiveClosestStations[index].description
let station = fiveClosestStations[index]
stationRadioButtons[index].title = station.description + String(format: " (%@)", WMATAfetcher.getDistanceFromStation(location: currentLocation!, station: station, isMetric: false))
}
} else {
selectStationAndRadioButtonsHeightConstraint.constant = 2
Expand Down
6 changes: 3 additions & 3 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PODS:
- Fabric (~> 1.6.3)
- Fabric (1.6.11)
- SwiftyJSON (3.1.3)
- WMATAFetcher (2.2.0):
- WMATAFetcher (2.2.1):
- SwiftyJSON (~> 3.0)

DEPENDENCIES:
Expand All @@ -15,8 +15,8 @@ SPEC CHECKSUMS:
Crashlytics: 2b6dbe138a42395577cfa73dfa1aa7248cadf39e
Fabric: 5911403591946b8228ab1c51d98f1d7137e863c6
SwiftyJSON: 38a8ea2006779c0fc4c310cb2ee8195327740faf
WMATAFetcher: 782b4d3ae6b967bd1de6dbe113d95ba2cbfb667f
WMATAFetcher: 8353ca1c1244ce7819ffa1a51fdab671d750a7a6

PODFILE CHECKSUM: cf472ee5754ad4f01b24dd56f92f19db35f25794

COCOAPODS: 1.2.0.beta.1
COCOAPODS: 1.1.1

0 comments on commit d931db6

Please sign in to comment.