Crash in swipeColor function at the very beginning of swiping gesture
nadyapost opened this issue · 1 comments
nadyapost commented
knutigro commented
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.