     }
     
     public func setValue(_ newVal: CGFloat, animated: Bool) {
-        self.value = newVal
+        value = newVal
         if animated {
             animateInnerRing()
         }

            self.setNeedsDisplay()
        }
    }
    @IBInspectable public var outerRingStyle: Int = 1 {
        didSet {
            switch self.outerRingStyle{
            case 1: self.outStyle = CGLineCap.butt
            case 2: self.outStyle = CGLineCap.round
            case 3: self.outStyle = CGLineCap.square

        }
    }
    
    
    @IBInspectable public var progressRingStyle: Int = 1 {
        didSet {
            self.setNeedsDisplay()
        }
    }
    
    public var patternForDashes: [CGFloat] = [7.0, 7.0] {
        didSet {
            self.setNeedsDisplay()
        }
    }
    
    
    // MARK: Outer Ring properties
    
    @IBInspectable public var outerRingWidth: CGFloat = 10.0 {
