Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored and github-actions[bot] committed Aug 24, 2023
1 parent b7bdcda commit 68cb1f3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 21 deletions.
3 changes: 2 additions & 1 deletion Examples/LocationManager/Common/AppCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public struct AppEnvironment {
private struct LocationManagerId: Hashable {}
private struct CancelSearchId: Hashable {}

public let appReducer = AnyReducer<AppState, AppAction, AppEnvironment> { state, action, environment in
public let appReducer = AnyReducer<AppState, AppAction, AppEnvironment> {
state, action, environment in
switch action {
case let .categoryButtonTapped(category):
guard category != state.pointOfInterestCategory else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import MapKit
public struct LocalSearchClient {
public var search: (MKLocalSearch.Request) -> EffectPublisher<LocalSearchResponse, Error>

public init(search: @escaping (MKLocalSearch.Request) -> EffectPublisher<LocalSearchResponse, Error>) {
public init(
search: @escaping (MKLocalSearch.Request) -> EffectPublisher<LocalSearchResponse, Error>
) {
self.search = search
}

Expand Down
22 changes: 11 additions & 11 deletions Sources/ComposableCoreLocation/Interface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -318,22 +318,22 @@ public struct LocationManager {
pausesLocationUpdatesAutomatically: Bool? = nil,
showsBackgroundLocationIndicator: Bool? = nil
) -> EffectPublisher<Never, Never> {
#if os(macOS) || os(tvOS) || os(watchOS)
#if os(macOS) || os(tvOS) || os(watchOS)
return .none
#else
#else
return self.set(
Properties(
activityType: activityType,
allowsBackgroundLocationUpdates: allowsBackgroundLocationUpdates,
desiredAccuracy: desiredAccuracy,
distanceFilter: distanceFilter,
headingFilter: headingFilter,
headingOrientation: headingOrientation,
pausesLocationUpdatesAutomatically: pausesLocationUpdatesAutomatically,
showsBackgroundLocationIndicator: showsBackgroundLocationIndicator
activityType: activityType,
allowsBackgroundLocationUpdates: allowsBackgroundLocationUpdates,
desiredAccuracy: desiredAccuracy,
distanceFilter: distanceFilter,
headingFilter: headingFilter,
headingOrientation: headingOrientation,
pausesLocationUpdatesAutomatically: pausesLocationUpdatesAutomatically,
showsBackgroundLocationIndicator: showsBackgroundLocationIndicator
)
)
#endif
#endif
}
}

Expand Down
28 changes: 20 additions & 8 deletions Sources/ComposableCoreLocation/Internal/Deprecations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
create: @escaping (_ id: AnyHashable) -> EffectPublisher<Action, Never> = { _ in
_unimplemented("create")
},
destroy: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = { _ in _unimplemented("destroy") },
dismissHeadingCalibrationDisplay: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = { _ in
destroy: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = { _ in
_unimplemented("destroy")
},
dismissHeadingCalibrationDisplay: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = {
_ in
_unimplemented("dismissHeadingCalibrationDisplay")
},
heading: @escaping (AnyHashable) -> Heading? = { _ in _unimplemented("heading") },
Expand All @@ -52,24 +55,30 @@
requestLocation: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = { _ in
_unimplemented("requestLocation")
},
requestWhenInUseAuthorization: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = { _ in
requestWhenInUseAuthorization: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = {
_ in
_unimplemented("requestWhenInUseAuthorization")
},
requestTemporaryFullAccuracyAuthorization: @escaping (AnyHashable, String) -> EffectPublisher<
Never, Never
> = { _, _ in
_unimplemented("requestTemporaryFullAccuracyAuthorization")
},
set: @escaping (_ id: AnyHashable, _ properties: Properties) -> EffectPublisher<Never, Never> = {
set: @escaping (_ id: AnyHashable, _ properties: Properties) -> EffectPublisher<
Never, Never
> = {
_, _ in _unimplemented("set")
},
significantLocationChangeMonitoringAvailable: @escaping () -> Bool = {
_unimplemented("significantLocationChangeMonitoringAvailable")
},
startMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = {
startMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> EffectPublisher<
Never, Never
> = {
_ in _unimplemented("startMonitoringSignificantLocationChanges")
},
startMonitoringForRegion: @escaping (AnyHashable, Region) -> EffectPublisher<Never, Never> = { _, _ in
startMonitoringForRegion: @escaping (AnyHashable, Region) -> EffectPublisher<Never, Never> = {
_, _ in
_unimplemented("startMonitoringForRegion")
},
startMonitoringVisits: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = { _ in
Expand All @@ -78,10 +87,13 @@
startUpdatingLocation: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = { _ in
_unimplemented("startUpdatingLocation")
},
stopMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = {
stopMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> EffectPublisher<
Never, Never
> = {
_ in _unimplemented("stopMonitoringSignificantLocationChanges")
},
stopMonitoringForRegion: @escaping (AnyHashable, Region) -> EffectPublisher<Never, Never> = { _, _ in
stopMonitoringForRegion: @escaping (AnyHashable, Region) -> EffectPublisher<Never, Never> = {
_, _ in
_unimplemented("stopMonitoringForRegion")
},
stopMonitoringVisits: @escaping (AnyHashable) -> EffectPublisher<Never, Never> = { _ in
Expand Down

0 comments on commit 68cb1f3

Please sign in to comment.