Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
SwiftUI ToolbarItem Constraints Error
Hi. Did you find the fix for this? I'm having the same issue
List(viewModel.points.indices, id: \.self) { index in
HStack(spacing: 0) {
Text(viewModel.points[index].name)
.modifier(RCTextModifier(style: .listMainRegular))
.frame(width: 120, alignment: .leading)
Spacer()
TextField(LocalizedKeys.ScoreCreation.points, text: $viewModel.points[index].score)
.modifier(RCTextFieldModifier(style: .number))
.frame(width: 120, alignment: .leading)
Spacer()
}
.listRowBackground(Color.clear)
.listRowInsets(EdgeInsets(top: 0, leading: viewModel.screenWidth * 0.2, bottom: 0, trailing: viewModel.screenWidth * 0.2))
}
.listStyle(.plain)
.toolbar {
ToolbarItemGroup(placement: .keyboard) {
Spacer()
Button(LocalizedKeys.Common.done) {
UIApplication.shared.endEditing()
}
}
}