【发布时间】:2020-07-11 14:23:53
【问题描述】:
【问题讨论】:
标签: swiftui xcode11 swiftui-list
【问题讨论】:
标签: swiftui xcode11 swiftui-list
您可以在 VStack 中的适当位置添加 spacer() 或尝试以下操作:
VStack {
CustomView1()
List {
Section(header: HeaderView(), footer: FooterView())
{
ForEach(viewModel.permissions) { permission in
CustomeView2()
}
GeneralView()//add the views at the end of list items
}
}.listStyle(GroupedListStyle())
}
【讨论】: