MihaelIsaev / MihaelIsaev/UIKitPlus
fillEqually not work when use ForEach in UVStack
Open
@MihaelIsaev is already working on this.
Since Apr 19, 2022.
- Dominant language
- Swift
- Stars
- 628
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
This works well
view.body {
UVStack {
UView().background(.random)
UView().background(.random)
UView().background(.random)
}.edgesToSuperview().alignment(.fill).distribution(.fillEqually)
}

This will not work.
view.body {
UVStack {
UForEach([0, 1, 2]) { i in
UText("识别结果, \(i)").background(.random)
}
}.edgesToSuperview().alignment(.fill).distribution(.fillEqually)
}

Contributor guide
No contributing guide indexed for this repository
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.
Assessment
This issue has not been assessed yet.