[photo browser] How can I add new photo after create from Ajax?

var photos = [
    'image1.jpg',
    'image2.jpg',
    'image3.jpg',
    'image4.jpg',
];
var myPhotoBrowserDark = app.photoBrowser.create({
   photos,
   theme: 'dark'
});

ajax loaded new data then put new photos into array

Reading the doc says that it has an instance of swiper:

photoBrowser.swiper
Contains initialized Swiper instance with all available Swiper methods and properties

And in swiper doc:
mySwiper.appendSlide(slides); Add new slides to the end. slides could be HTMLElement or HTML string with new slide or array with such slides, for example:

mySwiper.appendSlide('<div class="swiper-slide">Slide 10"</div>')
mySwiper.appendSlide([
   '<div class="swiper-slide">Slide 10"</div>',
   '<div class="swiper-slide">Slide 11"</div>'
]);

So maybe you can do it that way. Never done it. So don’t know if will work

I just add phots like this and it’s working now.

photos.push(imgUrl);