Giter VIP home page Giter VIP logo

Comments (4)

ruixingchen avatar ruixingchen commented on May 27, 2024

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.

ra1028 avatar ra1028 commented on May 27, 2024

@iwheelbuy @ruixingchen

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.

iwheelbuy avatar iwheelbuy commented on May 27, 2024

@ra1028 Thank you for your reply. Are there any known combinations to crash a view with single section?

from differencekit.

ra1028 avatar ra1028 commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.