This is what I have:
First square is correct cause the word is longer than the frame so multiline works good...in the last square I'd like to have JUDO MIX like BASKETBALL MIX, on 2 lines, but I don't know what to do because Text is in a ForEach and I can't edit Text frame, otherwise BASKETBALL and other words will be truncated. Any suggestions on how to achieve 1 line each word?
This is my code:
ForEach(0 ..< array.count, id: \.self) { index in
Image(array[index].val)
.customReflection()
VStack {
Text(array[index].category)
.font(.title)
.fontWeight(.bold)
.multilineTextAlignment(.center)
.frame(width: 181)
}
}
