Home > Mobile >  swiftUI : How I can use H or VStack container with List in NavigationView
swiftUI : How I can use H or VStack container with List in NavigationView

Time:03-23

    import SwiftUI

struct FolderView: View {
    var body: some View {
        NavigationView{
            VStack{
                HStack{
                    Text("hi")
                }
                .frame(height : 50)
                .frame(maxWidth : .infinity)
                .background(.blue)
            
                
                List {
                    Text("hi")
                }
            }
            
            .navigationTitle("Task Folders            
  • Related