https://github.com/neobeppe/gtzoomableimageview
Simple and lightweight zoomable and pinchable UIImageView
https://github.com/neobeppe/gtzoomableimageview
image-viewer ios swift zoomable-images
Last synced: 6 months ago
JSON representation
Simple and lightweight zoomable and pinchable UIImageView
- Host: GitHub
- URL: https://github.com/neobeppe/gtzoomableimageview
- Owner: neobeppe
- License: mit
- Created: 2016-11-29T12:00:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T10:04:10.000Z (about 5 years ago)
- Last Synced: 2025-02-24T19:01:37.494Z (8 months ago)
- Topics: image-viewer, ios, swift, zoomable-images
- Language: Swift
- Homepage:
- Size: 54.7 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
„# GTZoomableImageView
[](https://travis-ci.org/neobeppe/GTZoomableImageView)
[](http://cocoapods.org/pods/GTZoomableImageView)
[](http://cocoapods.org/pods/GTZoomableImageView)
[](http://cocoapods.org/pods/GTZoomableImageView)
[](https://coveralls.io/github/neobeppe/GTZoomableImageView?branch=master)## Requirements
iOS 8 is required.
## Installation
#### CocoaPods
DCViewer is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "GTZoomableImageView"
```#### Carthage
You can use [Carthage](https://github.com/Carthage/Carthage) to install `GTZoomableImageView` by adding it to your `Cartfile`:
```
github "neobeppe/GTZoomableImageView"
```#### Swift Package Manager
You can use [The Swift Package Manager](https://swift.org/package-manager) to install `GTZoomableImageView` by adding the proper description to your `Package.swift` file:
```swift
import PackageDescriptionlet package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.Package(url: "https://github.com/neobeppe/GTZoomableImageView.git"),
]
)
```Note that the [Swift Package Manager](https://swift.org/package-manager) is still in early design and development, for more information checkout its [GitHub Page](https://github.com/apple/swift-package-manager)
#### 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.