10

The WKWebView class doesn't support the scrollView property on macOS. Moreover it's view hierarchy doesn't contain an NSScrollView instance (I've checked using view debugging on 10.12)

Now is there another way to set the scrolling insets and content insets of a WKWebView on macOS? I'd like to place a translucent view overlaying its margins.

adib
  • 8,285
  • 6
  • 52
  • 91

1 Answers1

1

If it's just the top inset, call the SPI -[WKWebView _setTopContentInset:], which takes a CGFloat. Other than this I'm not seeing anything else that can programmatically alter the insets :/

saagarjha
  • 2,221
  • 1
  • 20
  • 37