Skip to content

Commit ad6a173

Browse files
mbrandonwactions-user
authored andcommitted
Run swift-format
1 parent 82d2a23 commit ad6a173

File tree

3 files changed

+85
-31
lines changed

3 files changed

+85
-31
lines changed

Sources/ComposableCoreLocation/Interface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ public struct LocationManager {
486486
)
487487
)
488488
}
489-
489+
490490
@available(tvOS, unavailable)
491491
@available(watchOS, unavailable)
492492
public func startMonitoringForRegion(id: AnyHashable, region: Region) -> Effect<Never, Never> {

Sources/ComposableCoreLocation/Live.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ extension LocationManager {
176176
#endif
177177
}
178178
}
179-
179+
180180
#if os(iOS) || targetEnvironment(macCatalyst)
181181
manager.startMonitoringVisits = { id in
182182
.fireAndForget { dependencies[id]?.locationManager.startMonitoringVisits() }

Sources/ComposableCoreLocation/Mock.swift

Lines changed: 83 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@
4343
@available(tvOS, unavailable)
4444
@available(watchOS, unavailable)
4545
public static func mock(
46-
authorizationStatus: @escaping () -> CLAuthorizationStatus = { _unimplemented("authorizationStatus") },
47-
create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in _unimplemented("create") },
46+
authorizationStatus: @escaping () -> CLAuthorizationStatus = {
47+
_unimplemented("authorizationStatus")
48+
},
49+
create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in
50+
_unimplemented("create")
51+
},
4852
destroy: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("destroy") },
4953
dismissHeadingCalibrationDisplay: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
5054
_unimplemented("dismissHeadingCalibrationDisplay")
@@ -57,38 +61,54 @@
5761
maximumRegionMonitoringDistance: @escaping (AnyHashable) -> CLLocationDistance = { _ in
5862
_unimplemented("maximumRegionMonitoringDistance")
5963
},
60-
monitoredRegions: @escaping (AnyHashable) -> Set<Region> = { _ in _unimplemented("monitoredRegions") },
64+
monitoredRegions: @escaping (AnyHashable) -> Set<Region> = { _ in
65+
_unimplemented("monitoredRegions")
66+
},
6167
requestAlwaysAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
6268
_unimplemented("requestAlwaysAuthorization")
6369
},
64-
requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("requestLocation") },
70+
requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
71+
_unimplemented("requestLocation")
72+
},
6573
requestWhenInUseAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
6674
_unimplemented("requestWhenInUseAuthorization")
6775
},
6876
set: @escaping (_ id: AnyHashable, _ properties: Properties) -> Effect<Never, Never> = {
6977
_, _ in _unimplemented("set")
7078
},
71-
significantLocationChangeMonitoringAvailable: @escaping () -> Bool = { _unimplemented("significantLocationChangeMonitoringAvailable") },
79+
significantLocationChangeMonitoringAvailable: @escaping () -> Bool = {
80+
_unimplemented("significantLocationChangeMonitoringAvailable")
81+
},
7282
startMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> Effect<Never, Never> = {
7383
_ in _unimplemented("startMonitoringSignificantLocationChanges")
7484
},
7585
startMonitoringForRegion: @escaping (AnyHashable, Region) -> Effect<Never, Never> = { _, _ in
7686
_unimplemented("startMonitoringForRegion")
7787
},
78-
startMonitoringVisits: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startMonitoringVisits")
88+
startMonitoringVisits: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
89+
_unimplemented("startMonitoringVisits")
7990
},
80-
startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingLocation")
91+
startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
92+
_unimplemented("startUpdatingLocation")
8193
},
8294
stopMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> Effect<Never, Never> = {
8395
_ in _unimplemented("stopMonitoringSignificantLocationChanges")
8496
},
8597
stopMonitoringForRegion: @escaping (AnyHashable, Region) -> Effect<Never, Never> = { _, _ in
8698
_unimplemented("stopMonitoringForRegion")
8799
},
88-
stopMonitoringVisits: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopMonitoringVisits") },
89-
startUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingHeading") },
90-
stopUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingHeading") },
91-
stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingLocation") }
100+
stopMonitoringVisits: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
101+
_unimplemented("stopMonitoringVisits")
102+
},
103+
startUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
104+
_unimplemented("startUpdatingHeading")
105+
},
106+
stopUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
107+
_unimplemented("stopUpdatingHeading")
108+
},
109+
stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
110+
_unimplemented("stopUpdatingLocation")
111+
}
92112
) -> Self {
93113
Self(
94114
authorizationStatus: authorizationStatus,
@@ -125,8 +145,12 @@
125145
@available(macOS, unavailable)
126146
@available(tvOS, unavailable)
127147
public static func mock(
128-
authorizationStatus: @escaping () -> CLAuthorizationStatus = { _unimplemented("authorizationStatus") },
129-
create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in _unimplemented("create") },
148+
authorizationStatus: @escaping () -> CLAuthorizationStatus = {
149+
_unimplemented("authorizationStatus")
150+
},
151+
create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in
152+
_unimplemented("create")
153+
},
130154
destroy: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("destroy") },
131155
dismissHeadingCalibrationDisplay: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
132156
_unimplemented("dismissHeadingCalibrationDisplay")
@@ -138,18 +162,27 @@
138162
requestAlwaysAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
139163
_unimplemented("requestAlwaysAuthorization")
140164
},
141-
requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("requestLocation") },
165+
requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
166+
_unimplemented("requestLocation")
167+
},
142168
requestWhenInUseAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
143169
_unimplemented("requestWhenInUseAuthorization")
144170
},
145171
set: @escaping (_ id: AnyHashable, _ properties: Properties) -> Effect<Never, Never> = {
146172
_, _ in _unimplemented("set")
147173
},
148-
startUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingHeading") },
149-
startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingLocation")
174+
startUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
175+
_unimplemented("startUpdatingHeading")
150176
},
151-
stopUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingHeading") },
152-
stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingLocation") }
177+
startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
178+
_unimplemented("startUpdatingLocation")
179+
},
180+
stopUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
181+
_unimplemented("stopUpdatingHeading")
182+
},
183+
stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
184+
_unimplemented("stopUpdatingLocation")
185+
}
153186
) -> Self {
154187
Self(
155188
authorizationStatus: authorizationStatus,
@@ -176,19 +209,27 @@
176209
@available(macOS, unavailable)
177210
@available(watchOS, unavailable)
178211
public static func mock(
179-
authorizationStatus: @escaping () -> CLAuthorizationStatus = { _unimplemented("authorizationStatus") },
180-
create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in _unimplemented("create") },
212+
authorizationStatus: @escaping () -> CLAuthorizationStatus = {
213+
_unimplemented("authorizationStatus")
214+
},
215+
create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in
216+
_unimplemented("create")
217+
},
181218
destroy: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("destroy") },
182219
location: @escaping (AnyHashable) -> Location = { _ in _unimplemented("location") },
183220
locationServicesEnabled: @escaping () -> Bool = { _unimplemented("locationServicesEnabled") },
184-
requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("requestLocation") },
221+
requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
222+
_unimplemented("requestLocation")
223+
},
185224
requestWhenInUseAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
186225
_unimplemented("requestWhenInUseAuthorization")
187226
},
188227
set: @escaping (_ id: AnyHashable, _ properties: Properties) -> Effect<Never, Never> = {
189228
_, _ in _unimplemented("set")
190229
},
191-
stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingLocation") }
230+
stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
231+
_unimplemented("stopUpdatingLocation")
232+
}
192233
) -> Self {
193234
Self(
194235
authorizationStatus: authorizationStatus,
@@ -208,39 +249,52 @@
208249
@available(tvOS, unavailable)
209250
@available(watchOS, unavailable)
210251
public static func mock(
211-
authorizationStatus: @escaping () -> CLAuthorizationStatus = { _unimplemented("authorizationStatus") },
212-
create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in _unimplemented("create") },
252+
authorizationStatus: @escaping () -> CLAuthorizationStatus = {
253+
_unimplemented("authorizationStatus")
254+
},
255+
create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in
256+
_unimplemented("create")
257+
},
213258
destroy: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("destroy") },
214259
headingAvailable: @escaping () -> Bool = { _unimplemented("headingAvailable") },
215260
location: @escaping (AnyHashable) -> Location = { _ in _unimplemented("location") },
216261
locationServicesEnabled: @escaping () -> Bool = { _unimplemented("locationServicesEnabled") },
217262
maximumRegionMonitoringDistance: @escaping (AnyHashable) -> CLLocationDistance = { _ in
218263
_unimplemented("maximumRegionMonitoringDistance")
219264
},
220-
monitoredRegions: @escaping (AnyHashable) -> Set<Region> = { _ in _unimplemented("monitoredRegions") },
265+
monitoredRegions: @escaping (AnyHashable) -> Set<Region> = { _ in
266+
_unimplemented("monitoredRegions")
267+
},
221268
requestAlwaysAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
222269
_unimplemented("requestAlwaysAuthorization")
223270
},
224-
requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("requestLocation") },
271+
requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
272+
_unimplemented("requestLocation")
273+
},
225274
set: @escaping (_ id: AnyHashable, _ properties: Properties) -> Effect<Never, Never> = {
226275
_, _ in _unimplemented("set")
227276
},
228-
significantLocationChangeMonitoringAvailable: @escaping () -> Bool = { _unimplemented("significantLocationChangeMonitoringAvailable") },
277+
significantLocationChangeMonitoringAvailable: @escaping () -> Bool = {
278+
_unimplemented("significantLocationChangeMonitoringAvailable")
279+
},
229280
startMonitoringForRegion: @escaping (AnyHashable, Region) -> Effect<Never, Never> = { _, _ in
230281
_unimplemented("startMonitoringForRegion")
231282
},
232283
startMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> Effect<Never, Never> = {
233284
_ in _unimplemented("startMonitoringSignificantLocationChanges")
234285
},
235-
startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingLocation")
286+
startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
287+
_unimplemented("startUpdatingLocation")
236288
},
237289
stopMonitoringForRegion: @escaping (AnyHashable, Region) -> Effect<Never, Never> = { _, _ in
238290
_unimplemented("stopMonitoringForRegion")
239291
},
240292
stopMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> Effect<Never, Never> = {
241293
_ in _unimplemented("stopMonitoringSignificantLocationChanges")
242294
},
243-
stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingLocation") }
295+
stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in
296+
_unimplemented("stopUpdatingLocation")
297+
}
244298
) -> Self {
245299
Self(
246300
authorizationStatus: authorizationStatus,

0 commit comments

Comments
 (0)