v1.10.0
- NEW Feature: Supports inverted color.
Developer Notes
This feature uses CABackdropLayer as the label background, with following CAFilters:
kCAFilterGaussianBlurGaussian Blur radius 50pt, normalized edgeskCAFilterColorBrightnessBrightness -30%kCAFilterColorContrastContrast 500xkCAFilterColorSaturateSaturation 0kCAFilterColorInvertColor Inversion
Then follow the steps:
- Make a
CATextLayeras the backdrop layer's mask. -setAttributedText:to the original label to hold the layout.-setString:to the text layer.