navigationBarBackButtonHidden(_ hidesBackButton: Bool) -> some View

But it still shows the back button and I want to remove the back function when clicked.

1