CALayer extension for using UIColor with CALayer
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:
Example Usage
Simply set the property layer.IBShadowColor
or layer.IBBorderColor
as a UIColor in Interface Builder and at runtime the appropriate CGColor will be used.