Post

Replies

Boosts

Views

Activity

How do I get buttons and a title on the right side?
I’m new to Swift, and I’m currently developing an application. When I run the code I get a tab on the left of the screen with a title and a list. This tab can be closed. On the right side of this tab there is a blank space. I was wondering how I could add a title and buttons in that space? The code I’m using: `import SwiftUI struct ContentView: View {     var body: some View {         NavigationView {             List {                 Text("Text")                                  }             .navigationTitle("Text")                          }                  }         }
1
0
319
Dec ’21
How do I get buttons and a title on the right side?
I’m new to Swift, and I’m currently developing an application. When I run the code I get a tab on the left of the screen with a title and a list. This tab can be closed. On the right side of this tab there is a blank space. I was wondering how I could add a title and buttons in that space? The code I’m using: `import SwiftUI struct ContentView: View {     var body: some View {         NavigationView {             List {                 Text("Text")                                  }             .navigationTitle("Text")                          }                  }         }
Replies
1
Boosts
0
Views
319
Activity
Dec ’21