Fixed avatar image stretching on iOS timeline.

This commit is contained in:
Maurice Parker 2019-04-16 09:05:09 -05:00
parent 829e482fae
commit baa861d007
2 changed files with 8 additions and 6 deletions

View File

@ -932,12 +932,12 @@
51C4526F2265091600C03939 /* Cell */ = {
isa = PBXGroup;
children = (
51C452702265091600C03939 /* MultilineUILabelSizer.swift */,
51C452712265091600C03939 /* MasterTimelineCellData.swift */,
51C452722265091600C03939 /* MasterTimelineTableViewCell.swift */,
51C452732265091600C03939 /* SingleLineUILabelSizer.swift */,
51C452742265091600C03939 /* MasterUnreadIndicatorView.swift */,
51C452712265091600C03939 /* MasterTimelineCellData.swift */,
51C452752265091600C03939 /* MasterTimelineCellLayout.swift */,
51C452742265091600C03939 /* MasterUnreadIndicatorView.swift */,
51C452732265091600C03939 /* SingleLineUILabelSizer.swift */,
51C452702265091600C03939 /* MultilineUILabelSizer.swift */,
);
path = Cell;
sourceTree = "<group>";

View File

@ -18,8 +18,10 @@ class MasterTimelineTableViewCell: UITableViewCell {
private let dateView = MasterTimelineTableViewCell.singleLineUILabel()
private let feedNameView = MasterTimelineTableViewCell.singleLineUILabel()
private lazy var avatarImageView = {
return UIImageView(image: AppAssets.feedImage)
private lazy var avatarImageView: UIImageView = {
let imageView = UIImageView(image: AppAssets.feedImage)
imageView.contentMode = .scaleAspectFit
return imageView
}()
private lazy var starView = {