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

Allow changing layouts? #92

Open
jessesquires opened this issue May 19, 2024 · 0 comments
Open

Allow changing layouts? #92

jessesquires opened this issue May 19, 2024 · 0 comments

Comments

@jessesquires
Copy link
Owner

jessesquires commented May 19, 2024

At the moment, the library doesn't necessarily care about a specific layout and doesn't explicitly assume a constant layout.

However, I'm not sure what happens if you currently attempt to do this. I suspect the data source would throw an exception if your new layout is radically different and uses different cell classes.

Collection View allows you to animate transitions to another layout:

Plus, delegate methods:

In order to accommodate this, we'd have to:

  1. update the view model (and cell registrations), but not perform a diff/reload yet
  2. update the layout
  3. reload?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant