summaryrefslogtreecommitdiff
path: root/Hutch/Views/More
diff options
context:
space:
mode:
Diffstat (limited to 'Hutch/Views/More')
-rw-r--r--Hutch/Views/More/MoreView.swift40
1 files changed, 40 insertions, 0 deletions
diff --git a/Hutch/Views/More/MoreView.swift b/Hutch/Views/More/MoreView.swift
new file mode 100644
index 0000000..b7c5576
--- /dev/null
+++ b/Hutch/Views/More/MoreView.swift
@@ -0,0 +1,40 @@
+import SwiftUI
+
+struct MoreView: View {
+ private let unsupportedLinks: [(title: String, url: URL)] = [
+ ("chat.sr.ht", URL(string: "https://chat.sr.ht")!),
+ ("man.sr.ht", URL(string: "https://man.sr.ht")!),
+ ("srht.site", URL(string: "https://srht.site")!)
+ ]
+
+ var body: some View {
+ List {
+ Section {
+ NavigationLink(value: MoreRoute.lists) {
+ Label("Lists", systemImage: "list.bullet.rectangle")
+ }
+
+ NavigationLink(value: MoreRoute.pastes) {
+ Label("Pastes", systemImage: "doc.on.clipboard")
+ }
+
+ NavigationLink(value: MoreRoute.settings) {
+ Label("Settings", systemImage: "gear")
+ }
+ }
+
+ Section {
+ ForEach(unsupportedLinks, id: \.title) { item in
+ Link(destination: item.url) {
+ Label(item.title, systemImage: "safari")
+ }
+ }
+ } header: {
+ Text("External Links")
+ } footer: {
+ Text("These SourceHut services are not supported in-app and open in your browser.")
+ }
+ }
+ .navigationTitle("More")
+ }
+}