Instance Method
transformColors(_:) transformColorsUsingBlock: transformColorsUsingBlock_
Passes each color used directly by the shapes of the layer to a block and updates it when the block returns a new color.
Declaration
func transformColors(_ block: @escaping (NSColor) -> NSColor?)Declaration
- (void) transformColorsUsingBlock:(NSColor * (^)(NSColor *)) block;Declaration
transformColorsUsingBlock_(
: NSColor,
block
)Discussion
Fill and stroke colors, gradient colors, and shadow colors are included. Colors in component glyphs are not included.
Return the original color or nil to leave a color unchanged.