Last active
September 10, 2022 23:24
-
-
Save mminer/134b3a0ed6be6b3eb3e305b63d96a126 to your computer and use it in GitHub Desktop.
NSButton extension that adds a method to change its text color.
Hey @pjkoning.
You might want to try something like this:
let color: NSColor = NSColor.white
if #available(macOS 10.14, *) {
self.contentTintColor = color
} else {
// Fallback on earlier versions
self.set(textColor: color)
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works great, but not on macOS 10.15. Do you have any clue?