Open grdsdev opened 3 months ago
Hey @grdsdev, thank you for the hard work and the proactive pull request. There are a couple of reasons I don't plan on merging this in, but I want to say that I really appreciate the idea!
Store
to Observable, but that's actually the easy part. Unfortunately Observable and property wrappers don't play well together, which is perfectly fine in the Store
, but it doesn't work for StoredValue
, SecurelyStoredValue
, and AsyncStoredValue
. I'm going to have to migrate those over to macros, which has it's own set of tradeoffs, but I'm working on that to see if it's something feasible for Boutique.AsyncStoredValue
, because it doesn't really serve much of a purpose since I ended up building StoredValue
and SecurelyStoredValue
. I may also introduce a new KeyBackedStoredValue
, which will be the foundation for StoredValue
and SecurelyStoredValue
, all of which (and more) is already a work in progress.I have a Boutique 3.0 beta running locally and plan to push it up in the next week or two, it won't be complete but it'll be a start that looks similar in some ways to your work.
Hope that makes sense, I'm happy to answer any questions you may have!
Changes
Close #54
Hi, this is a proposal of implementing Observable support, but using the https://github.com/pointfreeco/swift-perception library from Point-Free for making it available on iOS 13+
I just commented out some code that I don't think is needed anymore, such as the
Stored
property wrapper.@mergesort if you think this is the way to go, I can keep working on this PR to get it to a mergeable state.