New account selection menu

This commit is contained in:
Arkadiusz Fal
2022-12-11 23:15:56 +01:00
parent 4c143f6d88
commit d02bb23e57
26 changed files with 312 additions and 128 deletions

View File

@@ -112,7 +112,15 @@ struct SettingsView: View {
List {
#if os(tvOS)
if !accounts.isEmpty {
AccountSelectionView()
Section(header: Text("Current Location")) {
NavigationLink(destination: AccountsView()) {
if let account = accounts.current {
Text(account.isPublic ? account.description : "\(account.description)\(account.instance.shortDescription)")
} else {
Text("Not Selected")
}
}
}
Divider()
}
#endif