Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

ReloadableViewLayoutAdapter batchUpdates animation style #124

@Rep2

Description

@Rep2

Hi. I am finding ReloadableViewLayoutAdapter quite useful, but most of the methods are not open making it hard to use it for anything but the simplest of cases. Is there any reason for this?

For example, I need to change UITableView batchUpdates animation style. Method public func perform(batchUpdates: BatchUpdates) in extension UITableView: ReloadableView uses .automatic and cannot be overridden.

open func reload<T: Collection, U: Collection> in ReloadableViewLayoutAdapter is open but var currentArrangement is internal(set) because of which it is needed to call super. reload. As such it is not possible custom reload and call custom batchUpdates.

I ended up implementing custom ReloadableViewLayoutAdapter. Any better ideas? Would it be possible to make open some of the methods?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions