https://github.com/imwildcat/demosplitvcwithscrollview-vs-wkwebview
https://github.com/imwildcat/demosplitvcwithscrollview-vs-wkwebview
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/imwildcat/demosplitvcwithscrollview-vs-wkwebview
- Owner: imWildCat
- Created: 2021-08-07T05:02:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-07T05:10:43.000Z (almost 4 years ago)
- Last Synced: 2025-01-25T17:46:32.114Z (5 months ago)
- Language: Swift
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DemoSplitVCWithScrollView - A demonstration of legacy `WKWebView` bug in `UISplitViewController`
As described in ,
> This is because the parent UISplitViewController is reporting incorrect dimensions to the WebView - it is (probably) failing to subtract the 0.5 points for the divider line from the detail view's frame.
## Proof
On the simulator "iPad Pro (11-inch)" (iOS 15.0, with Xcode 13 beta),
when the left column is not collapsed,
the width of the `WKScrollView` is `873.5`.
However, the width of its child `WKContentView` is `874`, which may lead to this issue.In addition,
```swift
webView.scrollView.alwaysBounceHorizontal = false // This does not work at all.
```
does not work## Video recoding

## License
MIT