Swift AutoLayout – PKCanvasView contentSize
I am placing PKCanvasView inside UIImageView. With AutoLayout, I set the size of PKCanvasView to the size of UIImageView. So far everything is working normally. PKCanvasView contentSize is equal to UIImageView’s size. However, in cases such as rotating the screen or opening the keyboard, the contentSize of PKCanvasView is not equal to the new size of UIImageView. How do I solve this?