Skip to content

Commit

Permalink
Merge pull request #71 from valydia/update-readme
Browse files Browse the repository at this point in the history
Update README initialLocation snippet
  • Loading branch information
weakfl committed Oct 4, 2020
2 parents 8c8d5e4 + 5e2f5e2 commit 5a55def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -35,9 +35,9 @@ Then provide completion block which will be called when user closes view control
let locationPicker = LocationPickerViewController()

// you can optionally set initial location
let location = CLLocation(latitude: 35, longitude: 35)
let initialLocation = Location(name: "My home", location: location)
locationPicker.location = initialLocation
let placemark = MKPlacemark(coordinate: CLLocationCoordinate2D(latitude: 37.331686, longitude: -122.030656), addressDictionary: nil)
let location = Location(name: "1 Infinite Loop, Cupertino", location: nil, placemark: placemark)
locationPicker.location = location

// button placed on right bottom corner
locationPicker.showCurrentLocationButton = true // default: true
Expand Down

0 comments on commit 5a55def

Please sign in to comment.