I would like to know how to change title color to a NSButton in swift, I\'ve seen lots of examples in objective-c but I think in swift the implementation is different, can a
In Swift4
button.attributedTitle = NSMutableAttributedString(string: "Hello World", attributes: [NSAttributedStringKey.foregroundColor: NSColor.white, NSAttributedStringKey.paragraphStyle: style, NSAttributedStringKey.font: NSFont.systemFont(ofSize: 18)])