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

NewLine in Loop not working #38

Open
ppoh71 opened this issue Jan 11, 2023 · 0 comments
Open

NewLine in Loop not working #38

ppoh71 opened this issue Jan 11, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ppoh71
Copy link

ppoh71 commented Jan 11, 2023

Not sure if it's a bug ore a feature request but
adding new line inside a loop would be great to have.
This is not working currently.

WrappingHStack(1...20, id:\.self) {
   
  if $0 == 3 {
     NewLine()
   }

    Text("Item: \($0)")
        .padding(3)
        .background(Rectangle().stroke())
}.frame(minWidth: 250)

Otherwise working really great.

@ppoh71 ppoh71 added bug Something isn't working help wanted Extra attention is needed labels Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant