try with ignoresSafeArea()
@main struct TestMacTabApp: App { var body: some Scene { WindowGroup { Color.pink .ignoresSafeArea() } } }