From e289214e218ddc4cca6a567c4eecc910d4d4a3a2 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Sat, 6 May 2017 10:13:20 +0300 Subject: [PATCH] remove unused property --- LeadKit/Sources/Classes/Views/SpinnerView.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/LeadKit/Sources/Classes/Views/SpinnerView.swift b/LeadKit/Sources/Classes/Views/SpinnerView.swift index 9abf695f..c3bfe043 100644 --- a/LeadKit/Sources/Classes/Views/SpinnerView.swift +++ b/LeadKit/Sources/Classes/Views/SpinnerView.swift @@ -34,8 +34,6 @@ class SpinnerView: UIView, Animatable, LoadingIndicator { private let animationRepeatCount: Float private let clockwiseAnimation: Bool - private let preferredSize: CGSize - init(image: UIImage, animationDuration: CFTimeInterval = 1, animationRepeatCount: Float = Float.infinity, @@ -45,9 +43,7 @@ class SpinnerView: UIView, Animatable, LoadingIndicator { self.animationRepeatCount = animationRepeatCount self.clockwiseAnimation = clockwiseAnimation - self.preferredSize = image.size - - super.init(frame: CGRect(origin: .zero, size: preferredSize)) + super.init(frame: CGRect(origin: .zero, size: image.size)) let imageView = UIImageView(image: image) imageView.frame = bounds