Your SheetView NavigationView is using the default style of .columns.
You want .stack
Add this modifier to the SheetView NavigationView:
.navigationViewStyle(.stack)
Like this:
var body: some View {
NavigationView {
VStack {
SheetListView()
Spacer()
HStack {
Text("App version 0.1 (DEV)")
.foregroundColor(.gray)
}
.toolbar {
Button("Done") {
dismiss()
}
.font(.headline)
.padding()
}
}
.background(Color(.systemGroupedBackground))
}
.navigationViewStyle(.stack) /// **.stack**
}
Extra Hint: when pasting code to the forum, use "Paste and Match Style", to avoid the extra blank lines.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: