mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-25 04:36:24 +10:00
Add more details
This commit is contained in:
@@ -122,6 +122,7 @@ class PickLocationViewController: UIViewController {
|
||||
}
|
||||
|
||||
if let placemarks = placemarks as? [CLPlacemark] {
|
||||
|
||||
completion(placemarks)
|
||||
|
||||
} else {
|
||||
@@ -305,12 +306,19 @@ extension PickLocationViewController: UITableViewDataSource, UITableViewDelegate
|
||||
let placemark = placemarks[indexPath.row]
|
||||
|
||||
var text = ""
|
||||
|
||||
if let subLocality = placemark.subLocality {
|
||||
text += subLocality
|
||||
}
|
||||
|
||||
if let thoroughfare = placemark.thoroughfare {
|
||||
text += " " + thoroughfare
|
||||
}
|
||||
|
||||
if let subThoroughfare = placemark.subThoroughfare {
|
||||
text += " " + subThoroughfare
|
||||
}
|
||||
|
||||
cell.locationLabel.text = text
|
||||
|
||||
cell.checkImageView.hidden = true
|
||||
|
||||
Reference in New Issue
Block a user