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

Crash in swipeColor function at the very beginning of swiping gesture #24

Open
nadyapost opened this issue Sep 15, 2020 · 1 comment
Open

Comments

@nadyapost
Copy link

Crash occurs at the beginning of swipe gesture - when very slowly start dragging a cell to the right or to the left.

Screen Shot 2020-09-15 at 2 23 21 pm

Screen Shot 2020-09-15 at 2 15 43 pm

@knutigro
Copy link

knutigro commented Nov 3, 2020

I got the same problem but discovered that it is this code from the example code which introduceg this crash:

cell.defaultColor = tableView.backgroundView?.backgroundColor

The example code should be updated.

In my case the defaultcolor becomes nil and since its being forceunwrapped in SwipyCell it will crash.

SwipyCell {
public var defaultColor: UIColor!
}

The fix is to make sure cell.defaultColor has a real value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants