A simple extension for CALayer (in Swift) which allows you to set UIColor against the shadowColor
and borderColor
properties so they can be set within Interface Builder:
Simply set the property layer.IBShadowColor
or layer.IBBorderColor
as a UIColor in Interface Builder and at runtime the appropriate CGColor will be used.