Skip to content

Commit

Permalink
README fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiorubicini committed Aug 13, 2021
1 parent ad17d56 commit 910b4c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -6,12 +6,14 @@ First you need to create a view with a binding property of ``CLLocationCoordinat
The user is now free to navigate around the map and select the location. Once pressed anywhere on the map, an annotation will appear on the map while coordinates are always displayed in real time at the bottom of the screen.
You can also provide a custom text to tell the user what to do.

<img src="./Resources/example.png" width=300>
<div align="center">
<img src="./Resources/Overview.png" width=800>
</div>


## Example

Here's a short usage example. You can find the full code in [UsageExample.swift](https://github.com/alessiorubicini/LocationPickerForSwiftUI/Sources/LocationPicker/UsageExample.swift)
Here's a short usage example. You can find the full code in [UsageExample.swift](https://github.com/alessiorubicini/LocationPickerForSwiftUI/blob/master/Sources/LocationPicker/UsageExample.swift)

```swift
@State private var coordinates = CLLocationCoordinate2D(latitude: 37.333747, longitude: -122.011448)
Expand Down
Binary file added Resources/Overview.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Sources/LocationPicker/UsageExample.swift
@@ -1,5 +1,5 @@
//
// File.swift
// UsageExample.swift
//
//
// Created by Alessio Rubicini on 13/08/21.
Expand Down

0 comments on commit 910b4c3

Please sign in to comment.