I am using the swift extension.
extension UIView
{
@IBInspectable var cornerRadius: CGFloat {
get { return layer.cornerRadius }
set { layer.cornerRadius = newValue layer.masksToBounds = newValue > 0 }
}
}
Which is cookie cutter from several examples regarding @IBInspectable. However, when I use this in my project, the storyboard does not update while viewing in xcode, as in the link below
http://i.stack.imgur.com/r70IK.png
When compiling and running however, it does show the rounded corners. This is using xcode 6.3.2
If anyone has any suggestions, it would be very very much appreciated.
The project is here. github.com/captainchung/test