I need to disable scroll in tableView and increase the height according to its content. below is my code for table view in swiftUI please draw me guidance
var body: some View {
List{
ForEach(testData){ data in
VStack(alignment: .leading){
HStack{
Image(data.name)
.resizable()
.frame(width: 50, height: 50, alignment: .leading)
VStack(alignment: .leading){
Text(data.name)
.bold()
Text(data.bio)
.font(.subheadline)
}
}
}
}
}
.offset(y:-60)
.padding(8)
}