 		square.fillColor = black
 		square.path = UIBezierPath(rect: sq).CGPath
 		circle.path = UIBezierPath(ovalInRect: rect).CGPath
+		let radius = min(rect.width, rect.height)/2
+		let center = CGPoint(x: rect.midX, y: rect.midY)
+		progress.path = UIBezierPath(arcCenter: center, radius: radius, startAngle: CGFloat(-M_PI_2), endAngle: CGFloat(3 * M_PI_2), clockwise: true).CGPath
+		progress.strokeStart = 0
+		progress.strokeEnd = progressAmount
 	}
 }

		setupView()
	}
	func setupView() {
		for layer in [square, circle] {
			layer.strokeColor = black
			layer.fillColor = nil
			self.layer.addSublayer(layer)
		}
		configureView()
	}
	func configureView() {

class ProgessView: UIView {
	let circle = CAShapeLayer()
	let square = CAShapeLayer()
	let progress = CAShapeLayer()
	var progressAmount: CGFloat = 0.5
	let black = UIColor.blackColor().CGColor
	required init?(coder: NSCoder) {
		super.init(coder:coder)
