Vertically insetting NSTableView with "inset" style on Big Sur

I am using an NSTableView with the .inset style on macOS Big Sur. The table view is working well and has appropriate left and right margins.

However, it seems like the table view has zero top margins, which means that its top sits flush with the enclosing scroll view's top. That results in an "asymmetrical" appearance compared to the larger horizontal margin.

Is there a way to increase the table view's vertical insets? It appears that setting the contentInsets of the enclosing scroll view to e.g. {20, 0, 0, 0} has no effect.

Edit: See imgur.com/a/rMPttaX for a screenshot demonstrating the different margins (the "Filters" header is part of the table view and should have more vertical space above it).
Answered by Daniel A. in 631697022
Setting the scroll view's automaticallyAdjustsContentInsets property to false solved my problem.
Accepted Answer
Setting the scroll view's automaticallyAdjustsContentInsets property to false solved my problem.

Setting the scroll view's automaticallyAdjustsContentInsets property to false solved my problem.

In my case, I needed to set it to scrollView.contentView rather than the scroll view itself, like this:

Code Block swift
scrollView.automaticallyAdjustsContentInsets = false
scrollView.contentInsets = .init(top: 20, left: 0, bottom: 0, right: 0)

Sorry, I mean, like this.

Code Block swift
scrollView.contentView.automaticallyAdjustsContentInsets = false
scrollView.contentView.contentInsets = .init(top: 20, left: 0, bottom: 0, right: 0)

Vertically insetting NSTableView with "inset" style on Big Sur
 
 
Q