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 c0f9f13c50
commit 7296b09a17
13 changed files with 148 additions and 12 deletions

View File

@@ -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)