From 14e0ed954afeda685ec569e0966b8c75f65a1689 Mon Sep 17 00:00:00 2001 From: Dill <4053467+dillweed@users.noreply.github.com> Date: Thu, 26 Feb 2026 23:10:44 -0800 Subject: [PATCH] Improve changelog sheet dismissal controls Adds a persistent top Close action in the changelog sheet while keeping the existing bottom Close button, so users can exit long release notes without scrolling to the end. --- .changeset/40f4ab66.md | 5 +++++ Hex/Features/Settings/AboutView.swift | 6 ++++-- Hex/Features/Settings/ChangelogView.swift | 12 ++++++++---- 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 .changeset/40f4ab66.md diff --git a/.changeset/40f4ab66.md b/.changeset/40f4ab66.md new file mode 100644 index 00000000..48083adb --- /dev/null +++ b/.changeset/40f4ab66.md @@ -0,0 +1,5 @@ +--- +"hex-app": patch +--- + +Improve changelog sheet dismissal by adding a persistent top Close control while keeping the bottom Close button diff --git a/Hex/Features/Settings/AboutView.swift b/Hex/Features/Settings/AboutView.swift index 86eb525d..ed2f7265 100644 --- a/Hex/Features/Settings/AboutView.swift +++ b/Hex/Features/Settings/AboutView.swift @@ -31,7 +31,9 @@ struct AboutView: View { .sheet(isPresented: $showingChangelog, onDismiss: { showingChangelog = false }) { - ChangelogView() + NavigationStack { + ChangelogView() + } } } HStack { @@ -50,4 +52,4 @@ struct AboutView: View { .formStyle(.grouped) .enableInjection() } -} \ No newline at end of file +} diff --git a/Hex/Features/Settings/ChangelogView.swift b/Hex/Features/Settings/ChangelogView.swift index d728e1ea..c4e7eadc 100644 --- a/Hex/Features/Settings/ChangelogView.swift +++ b/Hex/Features/Settings/ChangelogView.swift @@ -9,10 +9,6 @@ struct ChangelogView: View { var body: some View { ScrollView { VStack(alignment: .leading, spacing: 10) { - Text("Changelog") - .font(.title) - .padding(.bottom, 10) - if let changelogPath = Bundle.main.path(forResource: "changelog", ofType: "md"), let changelogContent = try? String( contentsOfFile: changelogPath, encoding: .utf8) @@ -33,6 +29,14 @@ struct ChangelogView: View { } .padding() } + .navigationTitle("Changelog") + .toolbar { + ToolbarItem(placement: .cancellationAction) { + Button("Close") { + dismiss() + } + } + } .enableInjection() } }