Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imwildcat/demosplitvcwithscrollview-vs-wkwebview
https://github.com/imwildcat/demosplitvcwithscrollview-vs-wkwebview
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/imwildcat/demosplitvcwithscrollview-vs-wkwebview
- Owner: imWildCat
- Created: 2021-08-07T05:02:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-07T05:10:43.000Z (over 3 years ago)
- Last Synced: 2024-10-26T07:47:24.933Z (18 days 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
![recoding](https://user-images.githubusercontent.com/2396817/128588780-633d9e0e-3126-400c-ae23-5833a07a41f6.gif)
## License
MIT