Questions tagged [nsvisualeffectview]

NSView subclass which provides support for vibrant appearances.

NSVisualEffectView provides support for the user interface effects introduced in OS X Yosemite related to translucency, including “vibrant” appearances. To make the contents of a view blend with whatever is behind the view’s window or blend with contents of a view deeper in the view hierarchy, you contain the view in a visual effect view.

Apple Developer documentation page

56 questions
1
vote
0 answers

How can I remove unwanted border from NSVisualEffectView?

I am trying to make a borderless Window with NSVisualEffectView as view like this: class AppDelegate: NSObject, NSApplicationDelegate { private lazy var window: NSWindow = NSWindow() func applicationDidFinishLaunching(_…
ios coder
  • 1
  • 4
  • 31
  • 91
1
vote
0 answers

SwiftUI subview going off of the window

As a SwiftUI beginner, I have just recently started creating my first MacOS app. However, when I was trying to implement the NSVisualEffectView to blur the background, the contentView that I was using went off of the screen, which wasn't visible at…
i3ta
  • 11
  • 2
1
vote
0 answers

SwiftUI NSVisualEffectView does not look translucent?

I am trying to use the NSVisualEffectView in my project with SwiftUI. This is how I imported it: struct VisualEffectView: NSViewRepresentable { func makeNSView(context: Context) -> NSVisualEffectView { let view = NSVisualEffectView() …
WatashiJ
  • 722
  • 6
  • 19
1
vote
0 answers

Subviews of NSVisualEffectView has black background

The two LevelIndicators have a black opaque background, which are the sub views of a NSVisualEffectView ,, how to make the background translucent ?
1
vote
0 answers

Table view scrolling behind title bar creates artifacts as blur update lags

I noticed that projects that I compile on Xcode 9 (beta then, release now) have all a strange behavior. When a view scrolls behind the title bar (either with toolbar or not) the blur/translucency fails to update as quick as the scroll occurs and it…
Pyroh
  • 216
  • 2
  • 13
1
vote
1 answer

NSTablewView, Highlight Mode "None" and Blurred Background

I have noticed that when my view-based NSTableView has the highlight attribute set to "Source List" in Interface Builder, it renders its background with the vibrance effect (i.e., it blurs what lies behind its parent window). If instead I you set…
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
1
vote
1 answer

What's the relationship between NSAppearance, NSEffectView.Material, and "Vibrancy"

As in the question title, what's the relationship between NSAppearance, NSEffectView.Material, and "vibrancy"? I've found through experimentation that, for some materials, the choice of NSAppearance can change how the material appears (e.g.…
lcmylin
  • 2,552
  • 2
  • 19
  • 31
1
vote
1 answer

Make NSButton translucent

I have 2 NSButtons on a NSVisualEffectView. The first buttons image is the system NSEnterFullScreenTemplate image. The image on this first button is translucent. On the second button I have an image that I imported in Assets.xcassets. On this…
user2403221
  • 435
  • 1
  • 3
  • 12
1
vote
2 answers

Graphical bug NSVisualEffectView when app in background

My application has a NSTableView configured as a SourceList. Under the NSTableView are two NSButton two add/remove items in the table. The table and the buttons are embedded in a NSVisualEffectView (.behindWindow mode). The result is great and I can…
vomi
  • 993
  • 8
  • 18
1
vote
0 answers

NSButton color (Vibrant Dark) changes by itself

I have a problem with my buttons: Buttons A and B look good with any connection (@IBOutlet): Button B looks bad when is connected: import Cocoa class ButtonsC: NSViewController { @IBOutlet var b: NSButton! override func viewDidLoad() { …
Geek20
  • 673
  • 1
  • 9
  • 18
1
vote
1 answer

Yosemite: Manage NSPopover’s Vibrancy Effect

With the OS X 10.10 SDK, NSPopover seems to default to including an NSVisualEffectView somewhere in its hierarchy. Trouble is, I can’t seem to find any way to manage the effect. I’ve tried the Xcode View Debugger but that didn’t offer very much…
magiclantern
  • 768
  • 5
  • 19
1
vote
2 answers

NSScrollView/NSCollectionView on NSVisualEffectView cause flickering

I have a NSCollectionView within a NSVisualEffectView within a NSPopover. Everytime when it's refreshing(add, remove, reload NSCollectionViewItem, or even just click buttons on the NSCollectionViewItem's view), it has glitches on the…
Cai
  • 3,609
  • 2
  • 19
  • 39
1
vote
1 answer

NSScrollView blur in NSPopover

I have a couple of NSScrollViews inside an NSPopover in my app. I want to create a Safari-like blur with scrolled content on the top. However I can't find any solution, since it is an NSPopover and I cannot set the style mask. I tried adding a blank…
Andrii Liakh
  • 619
  • 3
  • 16
1
vote
1 answer

Swift allowVibrancy

How do I set a view to allow vibrancy in swift. I'm trying: func allowsVibrancy() -> Bool { return true } but getting an error: Method 'allowsVibrancy()' with Objective-C selector 'allowsVibrancy' conflicts with getter for 'allowsVibrancy' from…
Jimmy Jam
  • 107
  • 1
  • 6
1
vote
1 answer

Replace IKImageBrowserView's Superclass with NSVisualEffectView

I looking to make my IKImageBrowserView's background have a blurred background. According to the Apple Documentation, the IKImageBrowserView is based upon NSView. Is it possible to make an IKImageBrowserView inherit from an NSVisualEffectView…
foobar5512
  • 2,470
  • 5
  • 36
  • 52