Latest 1.1.0
Homepage https://github.com/neobeppe/GTZoomableImageView
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

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.

Latest podspec

{
    "name": "GTZoomableImageView",
    "version": "1.1.0",
    "summary": "View that implements pinch to zoom and double tap zoom gesture for a Image View",
    "homepage": "https://github.com/neobeppe/GTZoomableImageView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Giuseppe Travasoni": "[email protected]"
    },
    "social_media_url": "https://twitter.com/neobeppe",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/neobeppe/GTZoomableImageView.git",
        "tag": "1.1.0"
    },
    "source_files": "Sources/**/*",
    "frameworks": "UIKit",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This