First time here? Check out the FAQ!
Where does customPreviewLayer even come from? Is it the layer on the parentView?