From c83697cfb2b0c035400bc5dbbbf7de6b228f1ebd Mon Sep 17 00:00:00 2001 From: Trey t Date: Thu, 3 Mar 2022 09:59:16 -0600 Subject: [PATCH] fix weird stuttering bug with month view --- Shared/views/MonthView/MonthView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Shared/views/MonthView/MonthView.swift b/Shared/views/MonthView/MonthView.swift index 6908baf..daa5456 100644 --- a/Shared/views/MonthView/MonthView.swift +++ b/Shared/views/MonthView/MonthView.swift @@ -49,7 +49,7 @@ struct MonthView: View { } } else { ScrollView { - LazyVStack(spacing: 5, pinnedViews: [.sectionHeaders]) { + VStack(spacing: 5) { ForEach(viewModel.grouped.sorted(by: { $0.key < $1.key }), id: \.key) { year, months in // for reach month @@ -73,10 +73,9 @@ struct MonthView: View { onDismiss: didDismiss) { selectedDetail.fuckingWrapped } - .edgesIgnoringSafeArea(.top) } } - .padding(.top) + .padding([.top, .bottom]) .background( theme.currentTheme.bg .edgesIgnoringSafeArea(.all)