New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/data did set #67
Conversation
An example here would be // Get `IndexSet` to delete and insert
let indexSetToDelete = toDeleteIndexSet()
self.data = sections
let indexSetToInsert = toInsertIndexSet()
// Execute `tableView` updates
tableView.beginUpdates()
tableView.deleteSections(indexSetToDelete, with: .fade)
tableView.insertSections(indexSetToInsert, with: .fade)
tableView.endUpdates() |
Nice! I actually need this for something I'm working on at the moment in Camrote. My only thought is it may also be nice to get a temporary disabling rather than a toggle (As well?) So you could either:
OR
|
@simonmitchell Yeah that does make sense :). I guess it would fundamentally work the same as this, but |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, discussion above can be done at a future date!
When
reloadData()
is not desired after settingdata
subclasses may setreloadDataOnDataDidSet = false
.Subclasses should be responsible for their own reloading in this case.
Motivation and Context
Fix issue with a search row in an app referencing this framework.
How Has This Been Tested?
In the app referencing this framework.
Types of changes
Checklist: