GTZoomableImageView 1.3.0

GTZoomableImageView 1.3.0

Maintained by Giuseppe Travasoni.



„# GTZoomableImageView

CI Status Version License Platform Coverage Status

Requirements

iOS 8 is required.

Installation

CocoaPods

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

pod "GTZoomableImageView"

Carthage

You can use Carthage to install GTZoomableImageView by adding it to your Cartfile:

github "neobeppe/GTZoomableImageView"

Swift Package Manager

You can use The Swift Package Manager to install GTZoomableImageView by adding the proper description to your Package.swift file:

import PackageDescription

let package = Package(
    name: "YOUR_PROJECT_NAME",
    targets: [],
    dependencies: [
        .Package(url: "https://github.com/neobeppe/GTZoomableImageView.git"),
    ]
)

Note that the Swift Package Manager is still in early design and development, for more information checkout its GitHub Page

Manually

To use this library in your project manually you may:

  1. for Projects, just drag GTZoomableImageView.swift to the project tree
  2. for Workspaces, include the whole GTZoomableImageView.xcodeproj

Usage

You can use GTZoomableImageView via Storyboard, where you can set the image, minimun and maximum zoom level directly in Attributes inspector. Otherwise you can create a new GTZoomableImageView programmatically with custom frame, and remember to assign an UIImage.

Default maximum zoom level is 3, and minimum is 1.

License

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