From 201e69cbb20dac8a2546bc5c82abfda6fd2845f8 Mon Sep 17 00:00:00 2001 From: redstrate <54911369+redstrate@users.noreply.github.com> Date: Thu, 4 Jun 2020 19:02:22 -0400 Subject: [PATCH] Improve profile navigation --- MobileFort/MobileFort/ProfileView.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MobileFort/MobileFort/ProfileView.swift b/MobileFort/MobileFort/ProfileView.swift index 1d6011b..a286419 100644 --- a/MobileFort/MobileFort/ProfileView.swift +++ b/MobileFort/MobileFort/ProfileView.swift @@ -47,7 +47,9 @@ struct DescriptionView: View { } var body: some View { - WebView(webView: webView) + VStack { + WebView(webView: webView) + }.navigationBarTitle("Sidebar", displayMode: .inline) } } @@ -57,14 +59,12 @@ struct ProfileView: View { @State var posts: [ParsedPostContainer] = [] var body: some View { - VStack { - List(posts, id: \.post.id) { post in - PostView(post: post) - } + List(posts, id: \.post.id) { post in + PostView(post: post) } - .navigationBarTitle(username + "'s Feed") + .navigationBarTitle(username) .navigationBarItems(trailing: NavigationLink(destination: DescriptionView(username: username)) { - Text("Description") + Text("Sidebar") }) .onAppear { let url = URL(string: "https://www.pillowfort.social/" + self.username + "/json")!