obs-websocket-js
obs-websocket-js copied to clipboard
Crash in swipeColor function at the very beginning of swiping gesture
Crash occurs at the beginning of swipe gesture - when very slowly start dragging a cell to the right or to the left.
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.