Last Updated: July 04, 2023
·
7.77K
· _jeffreyjackson

UILabel text glow

UILabel needs a little something to make it pop.

UIColor *glowColor = [UIColor greenColor];
textLabel.layer.shadowColor = [glowColor CGColor];
textLabel.layer.shadowRadius = 3.0f;
textLabel.layer.shadowOpacity = .8;
textLabel.layer.shadowOffset = CGSizeZero;
textLabel.layer.masksToBounds = NO;

You might not want to use green, but you get the idea.