Make the WkWebView zoom-in and zoom-out.
Created
February 6, 2017 11:00
-
-
Save pokk/4be038143299b1b3357ddcc3f3d6d787 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - Delegate method. | |
extension MyController: UIScrollViewDelegate { | |
// Disable view to zoom. | |
private func viewForZooming(in scrollView: UIScrollView) -> UIView? { | |
return nil | |
} | |
// Disable double-tap view to zoom. | |
private func viewForZoomingInScrollView(scrollView: UIScrollView) -> UIView? { | |
return nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment