summaryrefslogtreecommitdiff
path: root/Hutch/Views/More/MoreView.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-01 11:36:01 -0500
committerChristian Cleberg <[email protected]>2026-04-01 11:37:35 -0500
commit7b59ee6098c4649a51cafe4b58e3a675567e2c08 (patch)
tree3ec7aa3c843c13d24a164d89f1d724ac48d2210a /Hutch/Views/More/MoreView.swift
parent3f03c433a7435e283244e94f09bd513bd45f3202 (diff)
downloadhutch-2.6.0.tar.gz
hutch-2.6.0.tar.bz2
hutch-2.6.0.zip
feat: add multi-account supportv2.6.0
Implements: https://todo.sr.ht/~ccleberg/Hutch/11
Diffstat (limited to 'Hutch/Views/More/MoreView.swift')
-rw-r--r--Hutch/Views/More/MoreView.swift16
1 files changed, 16 insertions, 0 deletions
diff --git a/Hutch/Views/More/MoreView.swift b/Hutch/Views/More/MoreView.swift
index b7c5576..c981432 100644
--- a/Hutch/Views/More/MoreView.swift
+++ b/Hutch/Views/More/MoreView.swift
@@ -1,12 +1,16 @@
import SwiftUI
struct MoreView: View {
+ @Environment(AppState.self) private var appState
+
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")!)
]
+ @State private var showAccountSwitcher = false
+
var body: some View {
List {
Section {
@@ -36,5 +40,17 @@ struct MoreView: View {
}
}
.navigationTitle("More")
+ .toolbar {
+ ToolbarItem(placement: .topBarTrailing) {
+ Button {
+ showAccountSwitcher = true
+ } label: {
+ Image(systemName: "person.crop.circle")
+ }
+ }
+ }
+ .sheet(isPresented: $showAccountSwitcher) {
+ AccountSwitcherView()
+ }
}
}