Skip to content
This repository was archived by the owner on Nov 15, 2020. It is now read-only.
This repository was archived by the owner on Nov 15, 2020. It is now read-only.

Implement set(model:at:) to replace an existing model instance in a section at given index #8

@wow-such-amazing

Description

@wow-such-amazing

Another suggestion 🙂
Sometimes we can have favourite buttons inside cells. When we tap this button we have some animation. To have consistent table we need to update our dataSource. But I don't want to call reload data and brake the animation. I want to a silent update of the data source just to be sure, that UI and dataSource are the same. For this purpose it would be great to be able to do something like
director?.silentUpdate(model: ModelProtocol, at indexPath: IndexPath)

You did really great job for this library and documentation.

I currently implemented by using this
this.director?.section(at: 0)?.set(models: models)
Without calling reload data. But it would be nice to update only one model this way

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions