Expand activity strip to nine months

This commit is contained in:
Georg Bauer
2026-07-31 10:56:44 +02:00
parent 82fadda983
commit 4e4dfb0db9
4 changed files with 13 additions and 14 deletions

View File

@@ -414,7 +414,7 @@ final class HeatmapView: UIView {
) ?? latest
let firstMonth = Calendar(identifier: .gregorian).date(
byAdding: .month,
value: -5,
value: -8,
to: latestMonth
) ?? latestMonth
cells = page.heatCells.filter {
@@ -423,7 +423,7 @@ final class HeatmapView: UIView {
super.init(frame: CGRect(x: 0, y: 0, width: 0, height: 132))
backgroundColor = .systemBackground
let title = UILabel(frame: CGRect(x: 16, y: 12, width: 300, height: 22))
title.text = "Activity · last 6 months"
title.text = "Activity · last 9 months"
title.font = .preferredFont(forTextStyle: .subheadline)
title.textColor = .secondaryLabel
addSubview(title)