Skip to content

Commit 6352b84

Browse files
committed
Update README.md
1 parent 03e2e47 commit 6352b84

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@
2020
2121
```
2222

23-
#### LMViewModel Parameters
24-
|Param|Description|
25-
| --- | --- |
26-
|accuracy| The accuracy of a geographical coordinate.|
27-
|activityType|Constants indicating the type of activity associated with location updates.|
28-
|distanceFilter|A distance in meters from an existing location.|
29-
|backgroundUpdates|A Boolean value that indicates whether the app receives location updates when running in the background|
30-
31-
32-
3323
### 3. Call ViewModel method start() within async environment
3424
If task will be canceled the streaming stops automatically. I would recomend to use .task modifire it manages cancelation on it's own. If you desided to use Task and keep it in @State don't forget to cancel() when the time has come or it might course memory leaks in some cases
3525
```
@@ -68,7 +58,7 @@ If task will be canceled the streaming stops automatically. I would recomend to
6858
case unknownTermination
6959
```
7060

71-
## ViewModel API
61+
### LMViewModel API
7262
```
7363
public protocol ILocationManagerViewModel: ObservableObject{
7464
@@ -84,6 +74,15 @@ public protocol ILocationManagerViewModel: ObservableObject{
8474
}
8575
```
8676

77+
### LMViewModel Parameters
78+
79+
|Param|Description|
80+
| --- | --- |
81+
|accuracy| The accuracy of a geographical coordinate.|
82+
|activityType|Constants indicating the type of activity associated with location updates.|
83+
|distanceFilter|A distance in meters from an existing location.|
84+
|backgroundUpdates|A Boolean value that indicates whether the app receives location updates when running in the background|
85+
8786
## SwiftUI example of using package
8887
[async-location-swift-example](https://github.com/The-Igor/async-location-swift-example)
8988

0 commit comments

Comments
 (0)