WrappingHStack icon indicating copy to clipboard operation
WrappingHStack copied to clipboard

NewLine in Loop not working

Open ppoh71 opened this issue 2 years ago • 0 comments

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 avatar Jan 11 '23 12:01 ppoh71