-
Notifications
You must be signed in to change notification settings - Fork 3
ShadowView
fumoboy007 edited this page Nov 27, 2020
·
1 revision
A container view that draws a rectangular shadow underneath its content view in a performant manner.
public class ShadowView: NSView
NSView
public override init(frame frameRect: NSRect)
public required init?(coder: NSCoder)
var shadow: NSShadow?
The blur radius (in points) used to render the shadow.
var shadowBlurRadius: CGFloat
The default value is 3.
The offset (in points) of the shadow relative to the content view.
var shadowOffset
The default value is (0, -3).
The color of the shadow.
var shadowColor: NSColor
The default value is opaque black.
The view on top of the shadow.
var contentView: NSView?
The content view must be rectangular and fully opaque in order for the shadow effect to look convincing.
var alignmentRectInsets: NSEdgeInsets
public override func encode(with aCoder: NSCoder)
public override func updateConstraints()
Generated at 2020-11-27T07:13:09+0000 using swift-doc 1.0.0-beta.5.