Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fillEqually not work when use ForEach in UVStack #31

Open
EkkoG opened this issue Apr 18, 2022 · 3 comments · May be fixed by #34
Open

fillEqually not work when use ForEach in UVStack #31

EkkoG opened this issue Apr 18, 2022 · 3 comments · May be fixed by #34
Assignees

Comments

@EkkoG
Copy link
Contributor

EkkoG commented Apr 18, 2022

This works well

        view.body {
            UVStack {
                UView().background(.random)
                UView().background(.random)
                UView().background(.random)
            }.edgesToSuperview().alignment(.fill).distribution(.fillEqually)
        }

Simulator Screen Shot - iPhone 11 - 2022-04-19 at 00 41 09

This will not work.

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

image

EkkoG added a commit to EkkoG/UIKitPlus that referenced this issue Apr 18, 2022
EkkoG added a commit to EkkoG/UIKitPlus that referenced this issue Apr 18, 2022
@EkkoG EkkoG mentioned this issue Apr 18, 2022
@EkkoG EkkoG changed the title fillEqually not work when use ForEach in UHStack fillEqually not work when use ForEach in UVStack Apr 19, 2022
@MihaelIsaev
Copy link
Owner

@EkkoG this fix should work, please don't hesitate to re-open the issue if it doesn't

@EkkoG
Copy link
Contributor Author

EkkoG commented Apr 19, 2022

@MihaelIsaev Hello, 2.1.2 does not fix this issue. Same result as 2.1.1

@EkkoG
Copy link
Contributor Author

EkkoG commented Apr 19, 2022

And I can not reopen this issue because it was closed by you, not me.

@MihaelIsaev MihaelIsaev reopened this Apr 19, 2022
@MihaelIsaev MihaelIsaev self-assigned this Apr 19, 2022
EkkoG added a commit to EkkoG/UIKitPlus that referenced this issue Apr 21, 2022
@EkkoG EkkoG linked a pull request Apr 21, 2022 that will close this issue
EkkoG added a commit to EkkoG/UIKitPlus that referenced this issue May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants