The Wayback Machine - https://web.archive.org/web/20201120212821/https://github.com/linkedin/LayoutKit/pull/177
Skip to content
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

Add animationType to BatchUpdates #177

Open
wants to merge 1 commit into
base: master
from

Conversation

@fmirault
Copy link

@fmirault fmirault commented Jan 4, 2018

and use it for insertRows / deleteRows / reloadRows / insertSections / deleteSections / reloadSections methods.

Possible addition to #124 for animations.

… / deleteRows / reloadRows / insertSections / deleteSections / reloadSections
@fmirault
Copy link
Author

@fmirault fmirault commented Feb 21, 2018

Hi !

Still no news since january 4th for my PR, maybe I missed something or I have to ask for a review ?

Regards,

@@ -120,27 +120,27 @@ extension UITableView: ReloadableView {

// Update items.
if batchUpdates.insertItems.count > 0 {
insertRows(at: batchUpdates.insertItems, with: .automatic)
insertRows(at: batchUpdates.insertItems, with: batchUpdates.animationType)

This comment has been minimized.

@staguer

staguer Apr 20, 2018
Contributor

Can we control the animations on the collection view in a similar way? See line 70 in this file.

This comment has been minimized.

@fmirault

fmirault Apr 27, 2018
Author

Unfortunately, in UIKit collection view doesn't have the same animation properties, you can only insert / delete / reload / move without any more possibility. :( That's why I only updated table view animations

This comment has been minimized.

@fmirault

fmirault Jul 2, 2018
Author

More than 2 months since my last answer... Could you please at least read it ?

@staguer
Copy link
Contributor

@staguer staguer commented Apr 20, 2018

Apologies for the delay, @fmirault .

I added a comment. This adapter is used for both table views and collection views, so it'd be odd to have a property that has no effect in some cases. Would it be possible to make it (or something like it) work in both cases?

@fmirault
Copy link
Author

@fmirault fmirault commented Apr 27, 2018

Collection View isn't working like Table View, so I don't really see how I can achieve the same effect on it (it's an UIKit limitation in my opinion).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.