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 home.page.module
    IonicModule.forRoot({
    swipeBackEnabled: false
    }),

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

tried tis in home.page.ts

Both are not working. Please help .