Skip to content

Commit f7ad71e

Browse files
committed
Update init
1 parent 0f5b969 commit f7ad71e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Sources/LocationCacheStore/LocationStore.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ public enum LocationStoreAction {
1515

1616
/// `LocationStore` Dependency
1717
public struct LocationStoreDependency {
18-
var updateLocation: () async -> CLLocation?
18+
public var updateLocation: () async -> CLLocation?
19+
20+
public init(
21+
updateLocation: @escaping () async -> CLLocation?
22+
) {
23+
self.updateLocation = updateLocation
24+
}
1925
}
2026

2127
public extension LocationStoreDependency {

0 commit comments

Comments
 (0)