Comments (4)
I will also be very happy to see a method to return a guaranteed 1-staged changeset, since if I call performBatchUpdates multi times the animation looks broken.
from differencekit.
Sorry for my late reply.
Regardless of the number of sections, reload with a 1-staged changeset will cause a crash in several cases.
I think crashes are inevitable in many other libraries.
As far as I know, the libraries that can provide stable behavior in every case are DifferenceKit, RxDataSources, and IGListKit.
IGListKit avoids crashes by decomposing reloadItems into deletes and inserts. DifferenceKit and RxDataSources are using the same approach.
This means that it's impossible to prevent crashes and glitches in complex diff animations at the same time, due to the specification of UIKit.
from differencekit.
@ra1028 Thank you for your reply. Are there any known combinations to crash a view with single section?
from differencekit.
UIKit is a black-boxed framework, so I don't know all the specs, but the most typical case is when it takes move and update at the same time.
Even similar combinations may or may not crash, depending on the other conditions.
from differencekit.
Related Issues (20)
- Compute changeset in the background
- To do the insert and delete operations at once
- Delete .swift-version
- Crash when I reload collectionView HOT 1
- Help needed with crash - NSInternalInconsistencyException HOT 1
- Buggy default reload method HOT 1
- How can I reload a table that is behind on the navigation stack? HOT 1
- UICollectionView reload animation
- Duplicate items with some edge cases in AppKitExtension HOT 13
- Why DifferenceKit is so much faster than Apple's Foundation diffing? HOT 2
- Animation option for row reloading is not a valid option in AppKitExtension
- Does it work seamlessly when using an UICollectionView with SwiftUI cells? HOT 2
- tvOS UICollectionView.reload crash
- The algorithm cannot get the best diff results? HOT 1
- `Differentiable` requres `Equatable` AND `Hashable`, but docs say otherwise
- Using only the diffing algorithm
- Invalid batch updates detected
- How to apply ChageSet to an array?
- Use UITableView reconfigureRows and UICollectionView reconfigureItems for ChangeSet.elementUpdated
- How to use DifferenceKit with diffable data sources? HOT 1
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 differencekit.