Crash report
spongemook opened this issue · 6 comments
can you give more details? version, frequency etc.
StepSlider Version : 1.3.0
Language : Swift 5
Crash Device : iPhone X (13.1.3)
"It doesn't always happen. It occurs intermittently."
It was fixes in version 1.5.0. You should update to this version.
The issue still exists. The crash occurs when you hold the thumb, and drag and release it fast, as if you're swiping, instead of slowly dragging it along. The issue seems to be occurring because oldPath gets deallocated.
The crash is fixed when getting the value of oldPath from a copy of _trackLayer, instead of from _trackLayer itself.
CAShapeLayer * trackLayerCopy = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:_trackLayer]];
CGPathRef oldPath = trackLayerCopy.path;
instead of
CGPathRef oldPath = _trackLayer.path;
The same problem exists in 1.5.0.
@spongemook setting animation false worked for me.