calling super and adding corner radius to container rather than imageView in it
This commit is contained in:
parent
d388f5be84
commit
1d29966d1b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user