implemented the UI to render the formatted floating date

This commit is contained in:
Mauro Romito
2026-03-27 17:19:33 +01:00
committed by Mauro
parent e3a8c7f423
commit 96a13f718e
13 changed files with 148 additions and 12 deletions
@@ -31,6 +31,12 @@ struct ThreadTimelineScreen: View {
.toolbar { toolbar }
.toolbarBackground(.visible, for: .navigationBar) // Fix the toolbar's background.
.timelineMediaPreview(viewModel: $context.mediaPreviewViewModel)
.overlay(alignment: .top) {
if timelineContext.viewState.floatingTimelineDateEnabled {
FloatingDateBadge(dateText: timelineContext.floatingDateText)
.padding(.top, 13)
}
}
.overlay(alignment: .bottomTrailing) {
TimelineScrollToBottomButton(isVisible: isAtBottomAndLive) {
timelineContext.send(viewAction: .scrollToBottom)