summaryrefslogtreecommitdiff
path: root/Hutch/Views/Settings/SettingsView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hutch/Views/Settings/SettingsView.swift')
-rw-r--r--Hutch/Views/Settings/SettingsView.swift17
1 files changed, 17 insertions, 0 deletions
diff --git a/Hutch/Views/Settings/SettingsView.swift b/Hutch/Views/Settings/SettingsView.swift
index f307429..0dd4319 100644
--- a/Hutch/Views/Settings/SettingsView.swift
+++ b/Hutch/Views/Settings/SettingsView.swift
@@ -15,6 +15,7 @@ struct SettingsView: View {
Form {
appearanceSection()
behaviorSection()
+ safariExtensionSection()
authenticationSection()
}
.themedList()
@@ -56,6 +57,22 @@ struct SettingsView: View {
}
@ViewBuilder
+ private func safariExtensionSection() -> some View {
+ Section {
+ NavigationLink {
+ SafariExtensionHelpView()
+ } label: {
+ Label("Safari Extension", systemImage: "safari")
+ }
+ .themedRow()
+ } header: {
+ Text("Browser")
+ } footer: {
+ Text("Open supported SourceHut pages in Hutch from Safari without claiming sr.ht links system-wide.")
+ }
+ }
+
+ @ViewBuilder
private func appearanceSection() -> some View {
Section {
Picker("Theme", selection: $appTheme) {