viewSizeChanged(_:)
Tells the recever when the color panel’s view size changes in a way that might affect the color picker.
Declaration
@MainActor func viewSizeChanged(_ sender: Any?)Parameters
- sender:
The
NSColorPanelthat contains the color picker.
Discussion
Use this method to perform special preparation when resizing the color picker’s view. Because this method is invoked only as appropriate, it’s better to implement this method than to override the method superviewSizeChanged: for the NSView in which the color picker’s user interface is contained.