Ion-slides replacement swiperjs not snapping

I have got swiperjs working in Ionic/Angular and used the fix below for getting the slides to “snap” rather than free flow. However this causes an issue with resetting the slide index to 0 if the page is changed and then the user returns to the swiper.

Does anyone know any other solutions to get the swiper to Snap?