From 4fee875fa7b653a1144101097322b693e0ab6dac Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Mon, 1 Jan 2024 19:06:14 +0100 Subject: [PATCH] Fix timeline top padding --- Packages/Timeline/Sources/Timeline/View/TimelineView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/Timeline/Sources/Timeline/View/TimelineView.swift b/Packages/Timeline/Sources/Timeline/View/TimelineView.swift index 3277b3f2..aca9aae5 100644 --- a/Packages/Timeline/Sources/Timeline/View/TimelineView.swift +++ b/Packages/Timeline/Sources/Timeline/View/TimelineView.swift @@ -243,7 +243,7 @@ public struct TimelineView: View { private var scrollToTopView: some View { ScrollToView() - .frame(height: .layoutPadding) + .frame(height: pinnedFilters.isEmpty ? .layoutPadding : 0) .onAppear { viewModel.scrollToTopVisible = true }