diff --git a/Sources/Internal/VisibleMonthHeaderHeightTracker.swift b/Sources/Internal/VisibleMonthHeaderHeightTracker.swift index 2d8c100..a68dc83 100644 --- a/Sources/Internal/VisibleMonthHeaderHeightTracker.swift +++ b/Sources/Internal/VisibleMonthHeaderHeightTracker.swift @@ -61,7 +61,7 @@ final class VisibleMonthHeaderHeightTracker { } let size = itemView.contentView.systemLayoutSizeFitting( - CGSize(width: monthWidth, height: 0), + CGSize(width: monthWidth, height: UIView.layoutFittingCompressedSize.height), withHorizontalFittingPriority: .required, verticalFittingPriority: .fittingSizeLevel)