We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 } } }
The text was updated successfully, but these errors were encountered:
You’re welcome to open a pull request yourself and do it 🙂
Sorry, something went wrong.
Created first pull request, hope someone will approve and merge to master.
When I use NSTextField.backgroundColor, this is ambiguous property now
When I use NSTextField.backgroundColor, this is ambiguous property now. same problem
Successfully merging a pull request may close this issue.
Can you please add below:
The text was updated successfully, but these errors were encountered: