     
     
 
-    override init(frame:CGRect) {
+    public override init(frame:CGRect) {
         var _frame = frame
         _frame.size.width = min(frame.width,frame.height)
         _frame.size.height = min(frame.width,frame.height)

    }
    
    
    func startAnimatingWithDuration(duration : Double,toPercent percent:Int) {
        self.timer.invalidate()
        self.percentToDone = percent
        let timerTick = Double(duration/Double(percent))

        
    }
    
    public required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
