skiptools / skip-ui

SwiftUI for Android
https://skip.tools
GNU Lesser General Public License v3.0
119 stars 12 forks source link

List inside of VStack does not display bottom views #33

Open marcprux opened 4 months ago

marcprux commented 4 months ago

This code results in a list that doesn't show the footer row:

public struct ContentView: View {
    public var body: some View {
        VStack {
            List(1..<100) { i in
                Text("Row #\(i)")
            }
            Text("Bottom Row").font(.largeTitle)
        }
    }
}

Screenshot 2024-05-23 at 09 33 38

Embedding the List in an extra VStack works around the issue:

public struct ContentView: View {
    public var body: some View {
        VStack {
            VStack {
                List(1..<100) { i in
                    Text("Row #\(i)")
                }
            }
            Text("Bottom Row").font(.largeTitle)
        }
    }
}

Screenshot 2024-05-23 at 09 34 26