.safeArea does not work with List [Important] test with iOS 15 beta 4
struct ListTest : View {
var body: some View {
List {
ForEach((0..<50).reversed(), id: \.self) { index in
Text("\(index)")
.listRowBackground(Color.red)
}
}
.listStyle(.plain)
.safeAreaInset(edge: .bottom, alignment: .center) {
Bar()
}
.navigationBarTitleDisplayMode(.inline)
}
}
struct Bar : View {
var body: some View {
HStack {
Spacer()
VStack {
Text("Bar")
Text("Bar")
Text("Bar")
Text("Bar")
}
Spacer()
}
.background(.bar)
}
}