drawSwatch(in:)
Draws the current color in the specified rectangle.
Declaration
func drawSwatch(in rect: NSRect)Parameters
- rect:
The rectangle in which to draw the color.
Discussion
Subclasses adorn the rectangle in some manner to indicate the type of color. This method is invoked by color wells, swatches, and other user interface objects that need to display colors.