Is there any option to conceal the row that’s in white background when context menu seems? I do know it is due to Listing. I had to make use of Listing as a result of including ScrollView with LazyVStack on iOS 17, 18 had points when contents with various dimension seems like when keyboard dismissed the LazyVStack will not snap again. So I went with Listing.
So when highlighting the particular message I wish to know is it potential to cover that row behind it. If not then I feel I’ve to relay on UIKit for UITableVIew or UICollectionView which I have to study first to implement this. LazyVStack is massive NO for me.
Listing {
ForEach(Array(messagesViewModel.messages.enumerated()), id: .aspect.messageIndex) {
index, message in
let isBeginning = message.messageIndex == messagesViewModel.messages.first?.messageIndex
let isLast = message.messageIndex == messagesViewModel.messages.final?.messageIndex
let hasBogey = messagesViewModel.bogeyChatSuggestions != nil
chatMessageView(for: message, isBeginningOfSection: isBeginning)
.buttonStyle(.plain)
.id(message.messageIndex)
.padding(.backside, hasBogey ? 0 : (isLast ? 65 : 0))
.listRowSeparator(.hidden)
.listRowBackground(Shade.clear)
.contextMenu {
Button("Copy") { UIPasteboard.basic.string = textual content }
}
}
bogeyChatSuggestionView
.id(messagesViewModel.bogeyChatSuggestions?.id)
.listRowSeparator(.hidden)
.listRowBackground(Shade.clear)
}
.buttonStyle(.plain)
.listStyle(.plain)
.scrollContentBackground(.hidden)
.scrollIndicators(.hidden)
.background(Shade.white)

