I have this piece of code:
var body: some View { ZStack { Color.black .opacity(0.8) .edgesIgnoringSafeArea(.all)