moving loading spinner to zstack topright
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -94,8 +94,24 @@ struct ContentView: View {
|
||||
}
|
||||
}
|
||||
|
||||
var LoadingContainer: some View {
|
||||
VStack {
|
||||
HStack {
|
||||
Spacer()
|
||||
|
||||
if self.loading {
|
||||
ProgressView()
|
||||
.progressViewStyle(.circular)
|
||||
}
|
||||
}
|
||||
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
|
||||
var PostButtonContainer: some View {
|
||||
VStack {
|
||||
|
||||
Spacer()
|
||||
|
||||
HStack {
|
||||
@@ -120,14 +136,9 @@ struct ContentView: View {
|
||||
var body: some View {
|
||||
VStack {
|
||||
if let pool = self.pool {
|
||||
ZStack {
|
||||
NavigationView {
|
||||
VStack {
|
||||
if self.loading {
|
||||
ProgressView()
|
||||
.progressViewStyle(.circular)
|
||||
.padding([.bottom], 4)
|
||||
}
|
||||
|
||||
PostingTimelineView
|
||||
.onAppear() {
|
||||
switch_timeline(.home)
|
||||
@@ -143,9 +154,11 @@ struct ContentView: View {
|
||||
}
|
||||
}
|
||||
.navigationBarTitle("Damus", displayMode: .inline)
|
||||
|
||||
}
|
||||
.padding([.bottom], -8.0)
|
||||
|
||||
LoadingContainer
|
||||
}
|
||||
}
|
||||
|
||||
TabBar
|
||||
|
||||
Reference in New Issue
Block a user