mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-08 16:11:52 +01:00
Move avatar property setting to class
This commit is contained in:
parent
8cb080da6d
commit
55b9310f9c
iOS/MasterTimeline/Cell
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user