← All repositories

reportage

A life-logging app for iPhone

git clone https://code.inqk.net/reportage.git


commit a28dff75ee62d78f964d0b65ffe195c8234b7f58
parent 06bc7415b3de62fbb42173f0a672a0d7c9c58f40
Author: Michael Camilleri <[email protected]>
Date:   Wed, 21 Oct 2026 11:36:33 +0900

Fix content margins around tab bar

Diffstat

MReportage/Views/Charts/ChartsView.swift | 1+
MReportage/Views/Charts/ContextCharts.swift | 1+
MReportage/Views/Charts/QuestionChartView.swift | 1+
MReportage/Views/Charts/ReportCalendar.swift | 2++
MReportage/Views/Home/HomeView.swift | 1+
MReportage/Views/Report/ReportDetailView.swift | 1+
MReportage/Views/Settings/AboutView.swift | 1+
MReportage/Views/Settings/DiagnosticsSection.swift | 1+
MReportage/Views/Settings/NotificationsView.swift | 1+
MReportage/Views/Settings/QuestionEditor.swift | 1+
MReportage/Views/Settings/QuestionsView.swift | 1+
MReportage/Views/Settings/SettingsView.swift | 3++-
MReportage/Views/Settings/VocabularyView.swift | 3+++
MReportage/Views/Theme/Theme.swift | 6++++++

14 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/Reportage/Views/Charts/ChartsView.swift b/Reportage/Views/Charts/ChartsView.swift

@@ -70,6 +70,7 @@ struct ChartsView: View {
             }
             .listStyle(.plain)
             .scrollContentBackground(.hidden)
+            .tabBarClearance()
             .background(Theme.paper)
             .foregroundStyle(Theme.ink)
             .toolbar(.hidden, for: .navigationBar)

diff --git a/Reportage/Views/Charts/ContextCharts.swift b/Reportage/Views/Charts/ContextCharts.swift

@@ -161,6 +161,7 @@ struct ContextChartView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationBarTitleDisplayMode(.inline)

diff --git a/Reportage/Views/Charts/QuestionChartView.swift b/Reportage/Views/Charts/QuestionChartView.swift

@@ -45,6 +45,7 @@ struct QuestionChartView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationBarTitleDisplayMode(.inline)

diff --git a/Reportage/Views/Charts/ReportCalendar.swift b/Reportage/Views/Charts/ReportCalendar.swift

@@ -182,6 +182,7 @@ struct ReportCalendarView: View {
             .padding(.horizontal, Theme.margin)
             .padding(.vertical, Theme.itemGap)
         }
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationBarTitleDisplayMode(.inline)
@@ -262,6 +263,7 @@ struct DayReportsView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationBarTitleDisplayMode(.inline)

diff --git a/Reportage/Views/Home/HomeView.swift b/Reportage/Views/Home/HomeView.swift

@@ -252,6 +252,7 @@ private struct ReportDays: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
     }
 

diff --git a/Reportage/Views/Report/ReportDetailView.swift b/Reportage/Views/Report/ReportDetailView.swift

@@ -77,6 +77,7 @@ struct ReportDetailContent: View {
                 entity: entity, report: report, describer: describer,
                 onDelete: { isConfirmingDelete = true })
         }
+        .tabBarClearance()
         .toolbar {
             ToolbarItem(placement: .primaryAction) {
                 Button(isInstant ? "Answer" : "Edit", action: onEdit)

diff --git a/Reportage/Views/Settings/AboutView.swift b/Reportage/Views/Settings/AboutView.swift

@@ -44,6 +44,7 @@ struct AboutView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationTitle("About")

diff --git a/Reportage/Views/Settings/DiagnosticsSection.swift b/Reportage/Views/Settings/DiagnosticsSection.swift

@@ -30,6 +30,7 @@ private struct EventLogView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationTitle("Event Log")

diff --git a/Reportage/Views/Settings/NotificationsView.swift b/Reportage/Views/Settings/NotificationsView.swift

@@ -77,6 +77,7 @@ struct NotificationsView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationTitle("Notifications")

diff --git a/Reportage/Views/Settings/QuestionEditor.swift b/Reportage/Views/Settings/QuestionEditor.swift

@@ -270,6 +270,7 @@ struct QuestionForm<Footer: View>: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .scrollDismissesKeyboard(.interactively)
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)

diff --git a/Reportage/Views/Settings/QuestionsView.swift b/Reportage/Views/Settings/QuestionsView.swift

@@ -229,6 +229,7 @@ struct QuestionsView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationTitle("Questions")

diff --git a/Reportage/Views/Settings/SettingsView.swift b/Reportage/Views/Settings/SettingsView.swift

@@ -22,7 +22,7 @@ struct SettingsView: View {
                     } label: {
                         LabeledContent("Notifications") {
                             if settings.isEnabled {
-                                Text("\(settings.perDay) a Day", comment: "How many random prompts come each day")
+                                Text("\(settings.perDay) / day", comment: "How many random prompts come each day")
                             } else {
                                 Text("Off", comment: "Random prompts are turned off")
                             }
@@ -46,6 +46,7 @@ struct SettingsView: View {
             }
             .listStyle(.plain)
             .scrollContentBackground(.hidden)
+            .tabBarClearance()
             .background(Theme.paper)
             .foregroundStyle(Theme.ink)
             .toolbar(.hidden, for: .navigationBar)

diff --git a/Reportage/Views/Settings/VocabularyView.swift b/Reportage/Views/Settings/VocabularyView.swift

@@ -143,6 +143,7 @@ struct VocabularyView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationTitle("Vocabulary")
@@ -180,6 +181,7 @@ private struct VocabularyKindView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)
         .navigationTitle(Text(kind.vocabularyTitle))
@@ -336,6 +338,7 @@ private struct TokenDetailView: View {
         }
         .listStyle(.plain)
         .scrollContentBackground(.hidden)
+        .tabBarClearance()
         .scrollDismissesKeyboard(.interactively)
         .background(Theme.paper)
         .foregroundStyle(Theme.ink)

diff --git a/Reportage/Views/Theme/Theme.swift b/Reportage/Views/Theme/Theme.swift

@@ -115,6 +115,12 @@ extension View {
             .accessibilityAddTraits(.isHeader)
     }
 
+    /// Room between the end of a scrolling screen and the tab bar, which
+    /// otherwise sits right against the last row's rule.
+    func tabBarClearance() -> some View {
+        contentMargins(.bottom, Theme.blockGap, for: .scrollContent)
+    }
+
     /// The small spaced capitals used for labels such as dates and report
     /// kinds.
     func eyebrow(_ color: Color = Theme.muted) -> some View {