Add a small amount of corner clipping to favicons

This commit is contained in:
Maurice Parker 2019-09-21 17:24:50 -05:00
parent c7166cf7c9
commit e8a68511f1
2 changed files with 6 additions and 1 deletions

View File

@ -93,7 +93,10 @@ class MasterFeedTableViewCell : NNWTableViewCell {
}()
private let faviconImageView: UIImageView = {
return NonIntrinsicImageView(image: AppAssets.faviconTemplateImage)
let imageView = NonIntrinsicImageView(image: AppAssets.faviconTemplateImage)
imageView.layer.cornerRadius = MasterFeedTableViewCellLayout.faviconCornerRadius
imageView.clipsToBounds = true
return imageView
}()
private var unreadCountView = MasterFeedUnreadCountView(frame: CGRect.zero)

View File

@ -21,6 +21,8 @@ struct MasterFeedTableViewCellLayout {
private static let minRowHeight = CGFloat(integerLiteral: 44)
static let faviconCornerRadius = CGFloat(integerLiteral: 2)
let faviconRect: CGRect
let titleRect: CGRect
let unreadCountRect: CGRect