Created
January 23, 2020 05:35
-
-
Save nonylene/0a82c61beedf7c4526735a82ad89a46f to your computer and use it in GitHub Desktop.
Get the system color on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
let color = CIColor(color: NSColor.selectedTextBackgroundColor)! | |
color.red | |
color.green | |
color.blue | |
color.alpha |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment