List inside of VStack does not display bottom views
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 330
- Forks
- 76
- Avg merge
- 3h 6m
- Merged PRs (30d)
- 1
Description
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)
}
}
}
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)
}
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the provided ContentView containing a List and a footer Text inside a VStack. Compare the behavior with the extra nested VStack workaround; done means the bottom row displays without requiring that workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100