Instance Property

maskImage

An image whose alpha channel masks the visual effect view's material.

Declaration

var maskImage: NSImage? { get set }

Discussion

The default value of this property is nil, which is the equivalent of allowing all of the visual effect view's content to show through. Assigning an image to this property masks the portions of the visual effect view using the image's alpha channel.

If the visual effect view is the content view of a window, the mask is applied in an appropriate way to the window's shadow.