Public API to disable pinch zooming in WKWebView

Originator:dvpdiner2
Number:rdar://27549689 Date Originated:2016-07-26
Status:Duplicate/26425468 Resolved:
Product:iOS Product Version:iOS 10 beta 3
Classification: Reproducible:
 
Summary:
As of iOS 10, the user-scalable=no flag in the meta viewport tag is ignored in favour of always enabling pinch zooming for web content accessibility.

While this is a big win for users of websites that frequently abuse the viewport tag, there is currently no public API to disable this behaviour in WKWebView in native apps combined with other native UI elements.

Steps to Reproduce:
Create a native app that uses a WKWebView to display content for a portion of the screen. Pinch zoom in the area of the WKWebView.

Expected Results:
The content should not zoom, because the rest of the app (using native controls) does not zoom when pinching.

Actual Results:
The content of the WKWebView (but not the rest of the app) is zoomed in, breaking user expectations.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!