pointfreeco / composable-core-location

A library that bridges the Composable Architecture and Core Location.
MIT License
107 stars 56 forks source link

Support for more recent versions of TCA? #33

Closed tw0po1nt closed 1 year ago

tw0po1nt commented 1 year ago

I am currently building an app in TCA to keep my chops fresh on the latest in Apple Platforms development. The app needs to hook into CoreLocation, and hence I found this repository. But just from searching, it appears that this library has not been updated to support newer versions of TCA (updated concurrency, reducer protocol, etc).

Are there plans to update this library? Or can anyone direct me to an example of implementing the delegation pattern of CoreLocation (and many other Apple APIs) within newer versions of TCA? The closest example I could find was in the audio recorder case study.

mbrandonw commented 1 year ago

Hi @tw0po1nt, thanks for bringing this up.

We do plan on updating this library eventually, but thanks to async and AsyncStream in Swift, we can even fully disentangle it from TCA. No need to make use of Effects. That would make the library useful even for vanilla SwiftUI/UIKit applications.

That is the direction we want to go, but we also want it to play nicely with the dependency management system in TCA. So, we plan on breaking that piece into its own library (very soon), and then we will be in a better position to update this library.

mbrandonw commented 1 year ago

Also, I'm going to convert this to a discussion.