     var textColor: UIColor
     {
         set {
-
             if let layer = layer as? AnimationLayer {
                 layer.textColor = newValue.cgColor
             }

    private var font: UIFont!
    private var percentageSignFont: UIFont!


    override init(frame: CGRect) {

        super.init(frame: frame)

        create()
    }

    required init?(coder aDecoder: NSCoder) {

        super.init(coder: aDecoder)
        create()

    }

    override func awakeFromNib() {
        super.awakeFromNib()
        updateProgress()
    }
    
    func create() {

        self.backgroundColor = UIColor.clear
        self.isOpaque = false


        createTextField()
        createParagraphStyle()

    fileprivate var paragraphStyle: NSMutableParagraphStyle?
    fileprivate var attributedString: NSMutableAttributedString!
    fileprivate var _outlinePlacementInterfaceAdapter: String = "inside"

    override class var layerClass: AnyClass {
        return AnimationLayer.self
    }
