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 {
imageView.clipsToBounds = true
imageView.layer.cornerRadius = cornerRadius
clipsToBounds = true
layer.cornerRadius = cornerRadius
}
if let backgroundColor = imageModel.backgroundColor?.uiColor {
imageView.backgroundColor = backgroundColor
}
super.set(with: model, delegateObject, additionalData)
}
// MARK: - load functions