Skip to content

Commit 836f6fd

Browse files
committed
Update LMViewModel.swift
1 parent f9499af commit 836f6fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/d3-async-location/viewmodel/LMViewModel.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public final class LMViewModel: ILocationManagerViewModel{
1717

1818
// MARK: - Public
1919

20-
/// List of locations
20+
/// List of locations Subscribe different Views to locations publisher to feed them
21+
/// or create a proxy to manipulate with the flow like filtering, dropping, mapping etc
2122
@MainActor @Published public private(set) var locations : [CLLocation] = []
2223

2324
// MARK: - Private
@@ -44,7 +45,8 @@ public final class LMViewModel: ILocationManagerViewModel{
4445
activityType: CLActivityType? = nil,
4546
distanceFilter: CLLocationDistance? = nil,
4647
backgroundUpdates : Bool = false){
47-
manager = LocationManagerAsync(accuracy, activityType, distanceFilter, backgroundUpdates)
48+
49+
manager = .init(accuracy, activityType, distanceFilter, backgroundUpdates)
4850
}
4951

5052
deinit{

0 commit comments

Comments
 (0)