     }
 }
 
-class RoundImageView: UIImageView {
+@IBDesignable class RoundImageView: UIImageView {
     
     let circlePathLayer = CAShapeLayer()
 
-    var borderColor:UIColor = UIColor.blackColor() {
+    @IBInspectable var borderColor:UIColor = UIColor.blackColor() {
         didSet {
             layer.borderColor = borderColor.CGColor
         }

        }
    }
    
    var borderWidth:CGFloat = 0.0 {
        didSet {
            layer.borderWidth = borderWidth
        }
    }

    var cornerRadius:CGFloat {
        set (radius) {
            self.layer.cornerRadius = radius
            self.layer.masksToBounds = radius > 0.0

import UIKit
import QuartzCore

@IBDesignable class RoundedCornerView: UIView {

    @IBInspectable var borderColor:UIColor? = nil {
        didSet {
            if let borderColor = borderColor {
                layer.borderColor = borderColor.CGColor
