WKWebView issue in iOS 16 beta

webView.scrollView.bounces = NO;

I set up the code, but the webView can still slide up and down.

I assigned a color to the scrollView, I'm sure that's not the scrolling effect of the web page.

I am using WKWebview.

While the property bounces cannot control the display of the extra area, the property alwaysBounceVertical can.

Sorry, I can't take a screenshot.

Will this issue be fixed after the official version is released? Or that it was expected.

My Xcode: Version 14.0 beta 4 (14A5284g)

Simulator: iPhone 13 Pro - iOS 16.0

Post not yet marked as solved Up vote post of Pannnnnnda Down vote post of Pannnnnnda
10k views
  • Until apple fixes this issue, As a work around we can use below on iOS 16. It works.

        self.webView.scrollView.alwaysBounceVertical = NO;     self.webView.scrollView.alwaysBounceHorizontal = NO;

Add a Comment

Replies

Is it resolved?

Is it resolved?

I had the same problem as you, I fixed it as follows: WKWebview.scrollView.scrollEnabled = NO;

solved on iOS16.2

webView.scrollView.bounces = false webView.scrollView.alwaysBounceHorizontal = false webView.scrollView.alwaysBounceVertical = false 都没有用了, ios16.2官方会修复这个问题吗?

The bug has not been fixed for more than half a year,行不行啊,细狗