         configureView()
     }
     
+    
+    override func prepareForInterfaceBuilder() {
+        updateView()
+    }
+    
     func configureView() {
         circleCenter = CGPoint(x: self.center.x , y: 200)
     }
+    
+    func updateView() {
+        
+    }
+
     
     override func drawRect(rect: CGRect) {
         drawBackgoundGradient()
         drawBackCircle()
         drawProgressCircle()
+        drawTimeText()
     }
     
     func drawBackgoundGradient() {
         let ctx = UIGraphicsGetCurrentContext()
         
         CGContextSaveGState(ctx)
-        let startColor = UIColor(red: 194.0 / 255.0, green: 70.0 / 255.0, blue: 70.0 / 255.0, alpha: 1.0)
-        let endColor = UIColor(red: 204.0 / 255.0, green: 104.0 / 255.0, blue: 58.0 / 255.0, alpha: 1.0)
-        let colors = [startColor.CGColor, endColor.CGColor]
+        let colors = [gradientStartColor.CGColor, gradientEndColor.CGColor]
         let locations:[CGFloat] = [0.0, 1.0]
         let space = CGColorSpaceCreateDeviceRGB()
         let gradient = CGGradientCreateWithColors(space, colors, locations)
-        CGContextDrawLinearGradient(ctx, gradient, CGPointZero, CGPoint(x: 0, y: self.bounds.height), CGGradientDrawingOptions.allZeros)
+        CGContextDrawLinearGradient(ctx, gradient, CGPointZero, CGPoint(x: 0, y: self.bounds.height / 2.0), CGGradientDrawingOptions.allZeros)
         CGContextRestoreGState(ctx)
     }
     

        
    }
    
    
    
    
    
}

import UIKit

@objc(Day3View)
@IBDesignable class Day3View: UIView {
    
    var circleProgressLayer: CAShapeLayer!
    var circleBackLayer: CAShapeLayer!
    
    let circleRadius = CGFloat(100)
    var circleCenter: CGPoint!
    
    var currentTime = 0
    
    @IBInspectable var gradientStartColor: UIColor = UIColor(red: 217 / 255.0, green: 69 / 255.0, blue: 74.0 / 255.0, alpha: 1.0) {
        didSet {
            updateView()
        }
    }
    
    @IBInspectable var gradientEndColor: UIColor = UIColor(red: 204.0 / 255.0, green: 104.0 / 255.0, blue: 58.0 / 255.0, alpha: 1.0) {
        didSet {
            updateView()
        }
    }
    
    
    override init(frame: CGRect) {
