implemented the display logic for the formatted date

This commit is contained in:
Mauro Romito
2026-03-27 17:19:14 +01:00
committed by Mauro
parent eafe1f25e3
commit e3a8c7f423
4 changed files with 129 additions and 0 deletions
@@ -142,12 +142,17 @@ struct TimelineViewState: BindableState {
var enableKeyShareOnInvite: Bool
var floatingTimelineDateEnabled: Bool
var bindings: TimelineViewStateBindings
}
struct TimelineViewStateBindings {
var isScrolledToBottom = true
/// The formatted date text for the floating date badge shown while scrolling.
var floatingDateText: String?
/// The state of wether reactions listed on the timeline are expanded/collapsed.
/// Key is itemID, value is the collapsed state.
var reactionsCollapsed: [TimelineItemIdentifier: Bool]