mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Move avatar property setting to class
This commit is contained in:
@@ -63,6 +63,8 @@ final class MasterTimelineAvatarView: UIView {
|
||||
private extension MasterTimelineAvatarView {
|
||||
|
||||
func commonInit() {
|
||||
layer.cornerRadius = MasterTimelineDefaultCellLayout.avatarCornerRadius
|
||||
clipsToBounds = true
|
||||
addSubview(imageView)
|
||||
}
|
||||
|
||||
|
||||
@@ -203,8 +203,6 @@ private extension MasterTimelineTableViewCell {
|
||||
}
|
||||
|
||||
showView(avatarView)
|
||||
avatarView.layer.cornerRadius = MasterTimelineDefaultCellLayout.avatarCornerRadius
|
||||
avatarView.clipsToBounds = true
|
||||
|
||||
if avatarView.image !== cellData.avatar {
|
||||
avatarView.image = image
|
||||
|
||||
Reference in New Issue
Block a user