How change min and max zoom scale in WKWebView?
I use WKWebView to show svg. It's rather big and i need support of scaling it on pinch gesture. WKWebView do it out of the box. But. It has it's own constraints for min and max zoom scale. For example: subscribe to WKWebView's scrollView delegate and implement method optional func scrollViewDidEndZooming(_ scrollView: UIScrollView, with view: UIView?, atScale scale: CGFloat) { print(self.wkWebView.scrollView.minimumZoomScale, self.wkWebView.scrollView.maximumZoomScale) self.wkWebView.scrollView.minimumZoomScale = 0.01 self.wkWebView.scrollView.maximumZoomScale = 20.0 } And in next call it will