Removed VStack - only caused navigation problems and NavigationView (has been replaced by UINavigationController as rootViewController); fixed intend
This commit is contained in:
parent
9572ae0206
commit
953e731240
|
@ -20,9 +20,10 @@ struct ContentView: View {
|
|||
|
||||
|
||||
var body: some View {
|
||||
// NavigationView {
|
||||
// VStack {
|
||||
TabView(selection: $selection) {
|
||||
|
||||
/* First tab: Accounts */
|
||||
|
||||
AccountsTab(data: data)
|
||||
.onAppear {
|
||||
// due to a SwiftUI bug this cannot be set in AccountsTab directly, so i have to do it here
|
||||
|
@ -42,6 +43,8 @@ struct ContentView: View {
|
|||
}
|
||||
.tag(0)
|
||||
|
||||
/* Second tab: 'New' action sheet button */
|
||||
|
||||
VStack {
|
||||
NavigationLink(destination: TransferMoneyDialog()) {
|
||||
Text("Show transfer money dialog")
|
||||
|
@ -64,7 +67,6 @@ struct ContentView: View {
|
|||
)
|
||||
)
|
||||
}
|
||||
// }
|
||||
.tabItem {
|
||||
VStack {
|
||||
Image(systemName: "plus.circle.fill")
|
||||
|
@ -76,12 +78,6 @@ struct ContentView: View {
|
|||
.navigationBarHidden(false)
|
||||
.navigationBarTitle(navigationBarTitle)
|
||||
.navigationBarItems(leading: leadingNavigationBarItem)
|
||||
|
||||
|
||||
// }
|
||||
//.hideNavigationBar()
|
||||
//.navigationViewStyle(StackNavigationViewStyle()) // see https://stackoverflow.com/questions/59338711/swiftui-bug-navigationview-and-list-not-showing-on-ipad-simulator-only
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue