webkit disable scrolling in swift

webkit disable scrolling in swift

If you do not want the webview to be scrollable, you can easily disable it with the following lines of code.

<span class="s2">webKitView1</span><span class="s1">.</span>
scrollView
<span class="s1">.</span>
isScrollEnabled<span class="s1"> = </span>
<span class="s3"><b>false</b></span>
<span class="s1">
<span class="Apple-converted-space">&nbsp; &nbsp; &nbsp; </span></span>
<span class="s2">webKitView1</span><span class="s1">.</span>scrollView
<span class="s1">.</span>panGestureRecognizer<span class="s1">.</span>
isEnabled<span class="s1">=</span>
<span class="s3"><b>false
</b></span>
<span class="s2">webKitView1</span>
<span class="s1">.</span>
scrollView
<span class="s1">.</span>bounces<span class="s1"> = </span><span class="s3"><b>false</b></span>
<figure><img class="alignleft wp-image-541" src="http://www.exoda.de/wp-content/uploads/Bildschirmfoto-2019-10-05-um-13.29.41-300x55.png" alt="" width="676" height="124"></figure>

About the author

Tobias Stephan administrator

Leave a Reply