CRMotionView icon indicating copy to clipboard operation
CRMotionView copied to clipboard

CALayerInvalidGeometry crash

Open Momeks opened this issue 7 years ago • 1 comments

I just add this API to my swift project :

motionView = CRMotionView(frame: view.frame, image: UIImage(named: "\(animalName) BG”))
view.addSubview(motionView)

My app will crash due to this error :

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 368]’

how should I fix this ? Thank you

Momeks avatar Jul 14 '18 09:07 Momeks

I fixed it there was a problem with image name

Momeks avatar Jul 17 '18 13:07 Momeks