summaryrefslogtreecommitdiff
path: root/Hutch/Views/More/MoreView.swift
diff options
context:
space:
mode:
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()
+ }
}
}