After days of struggle, the following workaround works for me on XCode Version 14.0 (14A309).
self.webView.scrollView.bounces = false
self.webView.scrollView.alwaysBounceHorizontal = false
self.webView.scrollView.alwaysBounceVertical = false