Align separator insets with first letter of name
This commit is contained in:
parent
00f19f47aa
commit
00cb29c5c1
|
@ -177,6 +177,7 @@ private extension MasterFeedTableViewCell {
|
||||||
titleView.setFrameIfNotEqual(layout.titleRect)
|
titleView.setFrameIfNotEqual(layout.titleRect)
|
||||||
unreadCountView.setFrameIfNotEqual(layout.unreadCountRect)
|
unreadCountView.setFrameIfNotEqual(layout.unreadCountRect)
|
||||||
disclosureButton?.setFrameIfNotEqual(layout.disclosureButtonRect)
|
disclosureButton?.setFrameIfNotEqual(layout.disclosureButtonRect)
|
||||||
|
separatorInset = layout.separatorInsets
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@ struct MasterFeedTableViewCellLayout {
|
||||||
let titleRect: CGRect
|
let titleRect: CGRect
|
||||||
let unreadCountRect: CGRect
|
let unreadCountRect: CGRect
|
||||||
let disclosureButtonRect: CGRect
|
let disclosureButtonRect: CGRect
|
||||||
|
let separatorInsets: UIEdgeInsets
|
||||||
|
|
||||||
let height: CGFloat
|
let height: CGFloat
|
||||||
|
|
||||||
|
@ -47,6 +48,9 @@ struct MasterFeedTableViewCellLayout {
|
||||||
rFavicon = CGRect(x: bounds.origin.x, y: 0.0, width: MasterFeedTableViewCellLayout.imageSize.width, height: MasterFeedTableViewCellLayout.imageSize.height)
|
rFavicon = CGRect(x: bounds.origin.x, y: 0.0, width: MasterFeedTableViewCellLayout.imageSize.width, height: MasterFeedTableViewCellLayout.imageSize.height)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Separator Insets
|
||||||
|
separatorInsets = UIEdgeInsets(top: 0, left: rFavicon.maxX + MasterFeedTableViewCellLayout.imageMarginRight, bottom: 0, right: 0)
|
||||||
|
|
||||||
// Unread Count
|
// Unread Count
|
||||||
let unreadCountSize = unreadCountView.intrinsicContentSize
|
let unreadCountSize = unreadCountView.intrinsicContentSize
|
||||||
let unreadCountIsHidden = unreadCountView.unreadCount < 1
|
let unreadCountIsHidden = unreadCountView.unreadCount < 1
|
||||||
|
|
Loading…
Reference in New Issue