From 7b59ee6098c4649a51cafe4b58e3a675567e2c08 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 1 Apr 2026 11:36:01 -0500 Subject: feat: add multi-account support Implements: https://todo.sr.ht/~ccleberg/Hutch/11 --- Hutch/Views/More/MoreView.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Hutch/Views/More/MoreView.swift') 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() + } } } -- cgit v1.2.3