Border-to-Border Horizontal Scrollview inside a List

Hi everyone!

I'm facing a small problem with SwiftUI. In my app, I'd like to use a Horizontal ScrollView inside a List. The following screenshot pictures what I have now:

As you can see, "Louis Martin" is cropped because of the padding that is automatically applied to the list.

I thought about using a Vertical Scrollview that would contain the horizontal one and a ForEach to replace the list, but I'm using List features such as swipe actions. So I can't really get rid of the list. I've also tried to use listRowInsets and negative padding modifiers, without any success.

Does someone have a solution?

Thanks in advance,

Louis.

PS: I've also thought of disabling the scrolling of the list, and then displaying it under my scrollview in a VStack, which itself would be in a vertical scrollview. But I didn't manage to get rid of the list's “scrollability“.

Border-to-Border Horizontal Scrollview inside a List
 
 
Q