Comments (2)
Hi Clifton,
Will take me a days or so context switch fully back to the joys of CoreData/Publishers/Combine etc but need something similar myself so wiil have a look/ponder this week.
fwiw I'm hoping it'll be fairly simple, but know that usually means I'm missing something - so if you've cracked it in the meantime do let me know as I'd be interested in what you've come up with :-)
Kind regards
Jon
from swiftui-core-data-with-model.
Thanks for your reply. I did find a solution, yes. You can see the answers given here: https://stackoverflow.com/questions/66253532/reinitialize-combine-publishers-when-user-changes-global-object/66253686
As long as you have an @ObservableObject
that manages your project
change (or a workspace
as shown in the SO question), then you can simply listen for it and setup your Combine publishers again and have them pass in the new value that your NSPredicate
uses. 🙂
from swiftui-core-data-with-model.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftui-core-data-with-model.