alphaControlAddedOrRemoved(_:)
Sent when the color panel’s opacity controls have been hidden or displayed.
Declaration
@MainActor func alphaControlAddedOrRemoved(_ sender: Any?)Parameters
- sender:
The color panel sending the message.
Discussion
This method is invoked automatically when the opacity slider of the NSColorPanel is added or removed; you never invoke this method directly.
If the color picker has its own opacity controls, it should hide or display them, depending on whether the sender’s showsAlpha method returns false or true.