@@ -49,10 +49,7 @@ open class SSSpinnerButton: UIButton {
4949 fileprivate var isAnimating : Bool = false
5050
5151 fileprivate var spinnerType : SpinnerType = Config . spinnerType
52-
53- fileprivate var storedWidth : CGFloat ?
54- fileprivate var storedHeight : CGFloat ?
55-
52+
5653 /// Sets the button corner radius
5754 @IBInspectable var cornerRadius : CGFloat = 0 {
5855 willSet {
@@ -395,9 +392,6 @@ private extension SSSpinnerButton {
395392 storedHighlightedImage = self . image ( for: . highlighted)
396393
397394 storedBackgroundColor = self . backgroundColor
398- storedWidth = frame. width
399- storedHeight = frame. height
400-
401395 self . setImage ( nil , for: . normal)
402396 self . setImage ( nil , for: . disabled)
403397 self . setImage ( nil , for: . selected)
@@ -509,8 +503,6 @@ private extension SSSpinnerButton {
509503 self . isUserInteractionEnabled = true
510504
511505 let animation = CABasicAnimation ( keyPath: " bounds.size.width " )
512- animation. fromValue = storedHeight
513- animation. toValue = storedWidth
514506 animation. duration = self . animationDuration
515507 animation. fillMode = CAMediaTimingFillMode . forwards
516508 animation. isRemovedOnCompletion = false
0 commit comments