remove unused property

This commit is contained in:
Ivan Smolin 2017-05-06 10:13:20 +03:00
parent 7814b67ce3
commit e289214e21
1 changed files with 1 additions and 5 deletions

View File

@ -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