Skip to content

How about making the example do modifications? #49

Open
@teemobean

Description

@teemobean

This is an interesting model (I'm looking at the MVVM version)

Would you be able to implement updates via the UI into CoreData? It looks like the sample implementation implements the read path. I'd be curious how the write path works, specifically:

  1. I'm curious how you would implement TextField updates (for example, to let the user change the name of a country). Simple implementations would bind the TextField to the View Model and then (maybe?) use a combine pipeline to write updates to the view model to the DB. How would you convert this to an action?
  2. I'm also curious how you would handle CoreData synchronizations from iCloud. How does this model detect changes coming from the user (user edits the country) and thus the change needs to flow to CoreData, vs a change that happens in CoreData (maybe they have the app loaded on another device and changed the country there) needing to update the UI. How would you handle conflicts in this model?

Thank you for the cool work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions