Post

Replies

Boosts

Views

Activity

Reply to 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() } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’23
Reply to iOS15 Can't execute Sound only Local Notification.
Some information about this?
Replies
Boosts
Views
Activity
Feb ’22
Reply to 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() } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23