CRMotionView
CRMotionView copied to clipboard
CALayerInvalidGeometry crash
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
I fixed it there was a problem with image name