Custom view under toolbar in Tahoe.

I have a mac app using AppKit. I have a view that extends under the toolbar. It is very slightly blurred but still disturbs the readability of the toolbar items. In another window, I have a view that sits inside a NSScrollView and there the content is much more blurred and a bit dimmed under the toolbar.

Is there a way to make the not scrolled view behave like the one in the NSScrollView?

Thank you for your post. Without seeing the specific details you describe on a screenshot, I generally prefer uploading an image to facilitate easier understanding. I can certainly appreciate your perspective. Additionally, providing code is always beneficial, as it allows others to make modifications or offer recommendations.

Other developers will jump in this thread and provide their opinion as well.

For what I believe is when content appears underneath a translucent toolbar in macOS, macOS applies a blur effect to enhance readability. The level of blur and dimming depends on whether the content is scrollable or static.

To make your non-scrolling view behave like the view inside the NSScrollView, you can manually apply a similar visual effect by layering a visual effect view behind your content.

Adjust the visual effect view's properties to match the exact appearance you desire, ensuring it complements your app's design.

Looking forward to see the screenshot if possible.

Albert Pascual
  Worldwide Developer Relations.

here are two screenshots: This one shows the proper blurring:

and here you can see how the drawing is much more visible

(the gray bar below the toolbar is a tab bar in a NSTitlebarAccessoryViewController)

How would I add and configure the NSVisualEffects view? There is a lot going on, e.g. the blurring starts below the toolbar.

Custom view under toolbar in Tahoe.
 
 
Q