calling super and adding corner radius to container rather than imageView in it

This commit is contained in:
Chintakrinda, Arun Kumar (Arun) 2020-08-06 22:35:29 +05:30
parent d388f5be84
commit 1d29966d1b

View File

@ -249,13 +249,11 @@ import UIKit
} }
if let cornerRadius = imageModel.cornerRadius { if let cornerRadius = imageModel.cornerRadius {
imageView.clipsToBounds = true clipsToBounds = true
imageView.layer.cornerRadius = cornerRadius layer.cornerRadius = cornerRadius
} }
if let backgroundColor = imageModel.backgroundColor?.uiColor { super.set(with: model, delegateObject, additionalData)
imageView.backgroundColor = backgroundColor
}
} }
// MARK: - load functions // MARK: - load functions