mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 18:32:55 +00:00
Move avatar property setting to class
This commit is contained in:
1 parent
8cb080da6d
commit
55b9310f9c
2 files changed
+2
-2
No files matched your search
@@ -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