The most effective way is to just use:
.contentMargins(.vertical, 0)
.contentMargins(.horizontal, 0) is also available and they both work great.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: