I tried to set the contentSize of the PKCanvasView to CGSize(width: .max, height: .max), but it could be slide horizontally, which is not what I like. Besides, setting the width to a constant value is useless, it’ll make it unable to write because of the height is infinity.
So how to deal with it?