| Summary: | webView.scrollView.indicatorStyle does not work on iOS 15 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Daohan Chong <dh.chong> | ||||||
| Component: | Platform | Assignee: | Devin Rousso <hi> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | akeerthi, florentmorin, hi, simon.fraser, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 239898 | ||||||||
| Attachments: |
|
||||||||
Created attachment 443361 [details]
Patch
Committed r285424 (243980@main): <https://commits.webkit.org/243980@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 443361 [details]. This fix don't work on iOS when view is not opaque. |
Created attachment 442467 [details] The demo project (please run it using iOS 14 and 15 simulators respectively) Previously, on iOS 14, this kind of code can work perfectly: ```swift override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { super.traitCollectionDidChange(previousTraitCollection) switch traitCollection.userInterfaceStyle { case .light: webView.scrollView.indicatorStyle = .black case .dark: webView.scrollView.indicatorStyle = .white default: break } } ``` However, after iOS 15, it stopped from working. We cannot find any related documentation about customizing the color of the scroll indicator.