Code Monkey home page Code Monkey logo

imageviewer's Introduction

CI Status Swift 3.1 Carthage compatible Version Platforms iOS License MIT

Single image view

Gallery

For the latest changes see the CHANGELOG

Install

CocoaPods

pod 'ImageViewer'

Carthage

github "MailOnline/ImageViewer"

Sample Usage

For a detailed example, see the Example!

// Show the ImageViewer with 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
    }
}

ImageViewer version vs Swift version.

ImageViewer 5.0+ is Swift 4 ready! 🎉

If you use earlier version of Swift - refer to the table below:

Swift version ImageViewer version
4.x >= 5.0
3.x 4.0
2.3 3.1 ⚠️
2.2 <= 2.1

License

ImageViewer is licensed under the MIT License, Version 2.0. See the LICENSE file for more info.

Copyright (c) 2016 MailOnline

imageviewer's People

Contributors

zfoltin avatar krisiacik avatar ruiaaperes avatar mluisbrown avatar aashishdhawan avatar humblehacker avatar ealeksandrov avatar ivopintodasilva avatar oxozle avatar miex0r avatar kozyty avatar sebastianthiebaud avatar ricardopereira avatar siemian avatar iainsmith avatar chrisgriffiths avatar franciscoamado avatar elegwance avatar delfes avatar mergesort avatar joeferrucci avatar lucascoelho avatar nonepse avatar readmecritic avatar jesalgadom avatar

Watchers

James Cloos avatar Hanna Horobchenko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.