Is it possible to adjust the blur radius and transparency of an NSVisualEffectView
when it's applied to an NSWindow
(Swift or Objective-C)? I tried all variations of NSVisualEffectMaterial
(dark, medium, light) - but that's not cutting it. In the image below I've used Apple's non-public API with CGSSetWindowBackgroundBlurRadius
on the left, and NSVisualEffectView
on the right.
I'm trying to achieve the look of what's on the left, but it seems I'm relegated to use the methods of the right.
Here's my code:
blurView.blendingMode = NSVisualEffectBlendingMode.BehindWindow
blurView.material = NSVisualEffectMaterial.Medium
blurView.state = NSVisualEffectState.Active
self.window!.contentView!.addSubview(blurView)
Possibly, related - but doesn't answer my question:
- OS X NSVisualEffect decrease blur radius? - no answer