List not showing in scrollview

Hey

I this list embedded in a scrollview with wasn't showing up, the only was it would show up is if I put a UIScreen on it. Is there a better way of doing this because I have a background underneath and the UIScreen is currently covering the background?

List { ForEach( 0 ... 10, id: .self) { message in InboxRowView()

                }
            }
           
            .listStyle(PlainListStyle())
            .frame(height: UIScreen.main.bounds.height - 120)

Thanks

Because the formatting of your message and code is broken I can't be sure. Does this even compile?

At least it should say id:\.self

List not showing in scrollview
 
 
Q