Skip to content

Reloading table stops animation #9

Closed

Description

@Joebayld

I've found when interacting with a SwitchRow that because it's telling the tableView to reload it's data, It stops the animation of the UIControl. You can really notice it when flipping a switch.

As a solution, I think it's best not to always reload the table just when you want to update the dataSource. It always updates because you implement the didSet of the source. Perhaps we give an option to perform a silent update? That way we can still update the source without forcing a redraw.

Activity

  1. bcylin commented on Aug 8, 2017

    @bcylin
    Owner

    Thanks for reporting this issue. When the switch is toggled, the original row is replaced with a new one. Maybe it's time to change the rows from structs to classes so the values can be updated on the same objects.

    v0.6.1 should fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions