Fix spacing around date headers.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-10-24 10:07:42 -04:00
parent 3a4167bd60
commit c9e385920a

View file

@ -823,7 +823,8 @@ NS_ASSUME_NONNULL_BEGIN
- (CGFloat)dateHeaderHeight
{
if (self.viewItem.shouldShowDate) {
return MAX(self.dateHeaderDateFont.lineHeight, self.dateHeaderTimeFont.lineHeight);
// Add 5pt spacing above and below the date header.
return MAX(self.dateHeaderDateFont.lineHeight, self.dateHeaderTimeFont.lineHeight) + 10.f;
} else {
return 0.f;
}