Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 926 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 926 Bytes

Tests

Single image view

Gallery

For the latest changes see the CHANGELOG

Install

SwiftPM

Just add the repository URL in Xcode.

Sample Usage

For a detailed example, see the Example

// Show the ImageViewer with the first item
self.presentImageGallery(GalleryViewController(startIndex: 0, itemsDataSource: self))

// The GalleryItemsDataSource provides the items to show
extension ViewController: GalleryItemsDataSource {
    func itemCount() -> Int {
        return items.count
    }

    func provideGalleryItem(_ index: Int) -> GalleryItem {
        return items[index].galleryItem
    }
}