How to make a UIView glow using shadowColor

All UIViews and its subclasses (UILabel, UIButton, UITableView etc) have the ability to add a shadow. However, you can use that same property to create a glow effect.

First, let’s create the shadow

Pop over to storyboard and add a UIView. Then make it inherit the ShadowView subclass

Wait for a second or two while Xcode updates and your view should look like this