Add a small amount of corner clipping to favicons
This commit is contained in:
parent
c7166cf7c9
commit
e8a68511f1
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue