Skip to content

jocmp/ImageViewer

 
 

Repository files navigation

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
    }
}

About

An image viewer à la Twitter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 99.3%
  • Ruby 0.7%