title: zoom on ion-slide not properly working - Ionic 6
body: <p>I'm using Ionic 6 and wanted to zoom into a slide:</p>
  <pre><code>let zoom = this.slider.nativeElement.swiper.zoom;
      if(zoomIn){
        zoom.in();
        console.log(&quot;zoom in &quot;)
       
      }else{
        zoom.out(); 
        console.log(&quot;zoom out &quot;)
      }
  </code></pre>
  <p>This worked perfectly in Ionic 4, but using Ionic 6 it only works after zooming in/out in my Chrome Tab.
  Can anybody help me with this?</p>
  <p>I call the zoom function on this element:</p>
  <pre><code>  &lt;ion-slides [options]=&quot;sliderOpts&quot; #slider zoom&gt;   
        &lt;ion-slide&gt;
          &lt;div class = &quot;swiper-zoom-container&quot;&gt;
            &lt;img src=&quot;{{ 1.jpg}}&quot;&gt;
          &lt;/div&gt;
        &lt;/ion-slide&gt;
    &lt;/ion-slides&gt;
  </code></pre>
  <p><strong>UPDATE:</strong>
  changing the Viewchild Method and add the IonViewDidEnter() like following  solved the problem for me:</p>
  <pre><code>@ViewChild(IonSlides, {static: false})slider: IonSlides;
  
  
   ionViewDidEnter(){
      this.slider.update();
    }
  
  </code></pre>