Popularity
5.6
Stable
Activity
0.7
Declining
524
12
55

Programming language: Swift
License: NOASSERTION
Tags: Media     Image    
Latest version: v4.3.0

Viewer alternatives and similar libraries

Based on the "Image" category.
Alternatively, view Viewer alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Viewer or a related project?

Add another 'Image' Library

README

Viewer

Table of Contents

Features

Focus

Select an image to enter into lightbox mode.

Browse

Open an image or video to browse.

Rotation

Portrait or landscape, it just works.

Zoom

Pinch-to-zoom works seamlessly in images.

tvOS

Support for the Apple TV.

Setup

You'll need a collection of items that comform to the Viewable protocol. Then, from your UICollectionView:

import Viewer

override public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
    guard let collectionView = self.collectionView else { return }

    let viewerController = ViewerController(initialIndexPath: indexPath, collectionView: collectionView)
    viewerController.dataSource = self
    presentViewController(viewerController, animated: false, completion: nil)
}

extension CollectionController: ViewerControllerDataSource {
    func viewerController(_ viewerController: ViewerController, viewableAt indexPath: IndexPath) -> Viewable {
        return photos[indexPath.row]
    }
}

Installation

CocoaPods

pod 'Viewer'

Carthage

github "3lvis/Viewer"

License

Viewer is available under the MIT license. See the LICENSE file for more info.


*Note that all licence references and agreements mentioned in the Viewer README section above are relevant to that project's source code only.