fillEqually not work when use ForEach in UVStack
EkkoG opened this issue · comments
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)
}
@EkkoG this fix should work, please don't hesitate to re-open the issue if it doesn't
@MihaelIsaev Hello, 2.1.2 does not fix this issue. Same result as 2.1.1
And I can not reopen this issue because it was closed by you, not me.