Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 514 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 514 Bytes

ImgCarouselView

Simple image carousel view.

Usage

let imgCarouselView = ImgCarouselView(frame: frame)

imgCarouselView.configure(
    imageSources: [
        .url(URL(string: url1)!), // fetch image from url
        .url(URL(string: url2)!),
        .image(UIImage(named: "image")) // set UIImage
    ],
    cellContentMode: .scaleAspectFill
)

// you can add this imgCarouselView anywhere!

Dependencies