Lightbox icon indicating copy to clipboard operation
Lightbox copied to clipboard

Multiple images and video in the array loop

Open DharaniDevApp opened this issue 4 years ago • 0 comments

How to construct the below array in for loop as i need to append all my photo library items to show in the slider like inbuilt iphone.

let images = [ LightboxImage(imageURL: URL(string: "https://cdn.arstechnica.net/2011/10/05/iphone4s_sample_apple-4e8c706-intro.jpg")!), LightboxImage( image: UIImage(named: "photo1")!, text: "This is an example of a remote image loaded from URL" ), LightboxImage( image: UIImage(named: "photo2")!, text: "", videoURL: URL(string: "https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4") ), LightboxImage( image: UIImage(named: "photo3")!, text: "This is an example of a local image." ) ]

DharaniDevApp avatar Aug 18 '21 02:08 DharaniDevApp