Skip to content

Commit 6bcbcdf

Browse files
committed
update doc
1 parent 74a1124 commit 6bcbcdf

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Sources/d3-async-location/LocationManagerAsync.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import CoreLocation
99

10-
///Location manager streaming data asynchronously via instance of ``AsyncThrowingStream`` returning from ``start`` asking permission in advance if it's not determined.
10+
///Location manager streaming data asynchronously via instance of `AsyncThrowingStream` returning from ``start`` asking permission in advance if it's not determined.
1111
@available(iOS 15.0, watchOS 7.0, *)
1212
public final class LocationManagerAsync: NSObject, CLLocationManagerDelegate, ILocationManagerAsync{
1313

@@ -64,7 +64,7 @@ public final class LocationManagerAsync: NSObject, CLLocationManagerDelegate, IL
6464

6565
// MARK: - API
6666

67-
/// Check status and get stream of async data Throw an error ``LocationManagerErrors`` if permission is not granted
67+
/// Check status and get stream of async data Throw an error ``AsyncLocationErrors`` if permission is not granted
6868
public var start : AsyncThrowingStream<CLLocation, Error>{
6969
get async throws {
7070
if await permission.isGranted(for: manager){
@@ -127,10 +127,10 @@ public final class LocationManagerAsync: NSObject, CLLocationManagerDelegate, IL
127127

128128
// MARK: - Delegate
129129

130-
/// Pass ``CLLocation`` into the async stream
130+
/// Pass `CLLocation` into the async stream
131131
/// - Parameters:
132132
/// - manager: Location manager
133-
/// - locations: Array of ``CLLocation``
133+
/// - locations: Array of `CLLocation`
134134
public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
135135
locations.forEach{ pass(location: $0) }
136136
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import SwiftUI
99
import CoreLocation
1010

1111
/// ViewModel posting locations asynchronously
12-
/// Add or inject LMViewModel into a View ```@EnvironmentObject var model: LMViewModel```
12+
/// Add or inject LMViewModel into a View
13+
/// @EnvironmentObject var model: LMViewModel
1314
/// Call method start() within async environment to start async stream of locations
1415
@available(iOS 15.0, watchOS 7.0, *)
1516
public final class LMViewModel: ILocationManagerViewModel{

0 commit comments

Comments
 (0)