Can you please add below:
@IBDesignable
extension NSView
{
@IBInspectable var backgroundColor: NSColor? {
get {
if let colorRef = self.layer?.backgroundColor {
return NSColor(CGColor: colorRef)
} else {
return nil
}
}
set {
self.wantsLayer = true
self.layer?.backgroundColor = newValue?.CGColor
}
}
}
You鈥檙e welcome to open a pull request yourself and do it 馃檪
Created first pull request, hope someone will approve and merge to master.
Most helpful comment
You鈥檙e welcome to open a pull request yourself and do it 馃檪