If put a List in ScrollVIew, List won't appear:
import SwiftUI
struct BugView: View {
let numbers: [Int] = [0, 1, 2]
var body: some View {
ScrollView {
List(numbers, id: \.self) { number in
Text(number.description)
}
}
}
}
#Preview {
BugView()
}