You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say we want to use CoreLocation, we need to wrap CLLocationManager and register it as a dependency, as written in the dependency documentation.
In this case how can we implement CLLocationManagerDelegate.locationManagerShouldDisplayHeadingCalibration(_ manager: CLLocationManager) -> Bool and get return value from reducer?
Note: ComposableCoreLocation did not implement this method, and does not provide any examples.
Interface:
@DependencyClientpublicstructLocationManagerClient{vardelegate:@Sendable()->AsyncStream<Action>={AsyncStream{ _ in}}...@CasePathablepublicenumAction{...case didUpdateLocations(locations:[Location])case shouldDisplayHeadingCalibration <---
case didDetermineState(state:CLRegionState, for:CLRegion)...}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say we want to use CoreLocation, we need to wrap
CLLocationManager
and register it as a dependency, as written in the dependency documentation.In this case how can we implement
CLLocationManagerDelegate.locationManagerShouldDisplayHeadingCalibration(_ manager: CLLocationManager) -> Bool
and get return value from reducer?Note: ComposableCoreLocation did not implement this method, and does not provide any examples.
Interface:
Live:
Actor:
Delegate:
Beta Was this translation helpful? Give feedback.
All reactions