try
.ignoresSafeArea(.container, edges: [.bottom, .top])
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: