Ionic 4 ionic 4 angular disable iOS swipe back in home page

I enable the swipeGesture by putting this at app component.html
<ion-router-outlet id=“main-content” [swipeGesture]=“true” animated=“true”>.

I have tried

  1. this at
    swipeBackEnabled: false

  2. constructor(private routerOutlet: IonRouterOutlet) {
    ngOnInit() : void {
    this.routerOutlet.swipeGesture = false;

tried tis in

Both are not working. Please help .