Latest 1.0.3
Homepage https://github.com/shopgun/verso-ios
License MIT
Platforms ios 8.0
Frameworks UIKit

Version
Carthage Compatible
License
Platform

A multi-paged image viewer for iOS.

Verso makes it easy to layout a horizontally scrolling book-like view, with multiple pages visible and zoomable at any one time.

Requirements

  • iOS 8.0+
  • Xcode 8.0+
  • Swift 3.0+

Installation

CocoaPods

Verso is available through CocoaPods. To install it, simply add the following line to your Podfile:

use_frameworks!
pod "Verso"

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Verso into your Xcode project using Carthage, specify it in your Cartfile:

github "ShopGun/Verso"

Run carthage update to build the framework and drag the built Verso.framework into your Xcode project.


Usage

Spreads

An important concept within Verso is that of a Spread.

You use spreads to collect and layout multiple pages together. You can think of a Spread as the pages you see when you open a book. It can contain 1 or more pages – for example if you opened a book to the middle a spread would contain a left and right page, while if you were looking at the first page there would only be one page in the spread.

In Verso, the datasource provides a spread configuration. This defines the properties (the page indexes, and other details) for all the spreads within the Verso. Basically, both page count and layout information is encoded in the class that is returned by the datasource.

Author

Laurie Hufford ([email protected])

License

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

Latest podspec

{
    "name": "Verso",
    "version": "1.0.3",
    "summary": "A multi-paged image viewer for iOS",
    "description": "Verso makes it easy to implement a flexible multi-page book-like layout.",
    "homepage": "https://github.com/shopgun/verso-ios",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": "ShopGun",
    "social_media_url": "http://twitter.com/ShopGun",
    "source": {
        "git": "https://github.com/shopgun/verso-ios.git",
        "tag": "v1.0.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.0",
    "source_files": "Sources/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This