- NEW Feature: Supports inverted color.
Developer Notes
This feature uses CABackdropLayer
as the label background, with following CAFilter
s:
kCAFilterGaussianBlur
Gaussian Blur radius 50pt, normalized edgeskCAFilterColorBrightness
Brightness -30%kCAFilterColorContrast
Contrast 500xkCAFilterColorSaturate
Saturation 0kCAFilterColorInvert
Color Inversion
Then follow the steps:
- Make a
CATextLayer
as the backdrop layer's mask. -setAttributedText:
to the original label to hold the layout.-setString:
to the text layer.