{"id":20513788,"url":"https://github.com/yuriiik/isvimagescrollview","last_synced_at":"2025-04-14T00:01:57.249Z","repository":{"id":26893034,"uuid":"107979209","full_name":"yuriiik/ISVImageScrollView","owner":"yuriiik","description":"Image preview component with zoom, scroll and rotation support","archived":false,"fork":false,"pushed_at":"2022-01-17T14:53:36.000Z","size":3538,"stargazers_count":34,"open_issues_count":1,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T14:11:10.973Z","etag":null,"topics":["image-preview","ios","preview","uiscrollview"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuriiik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-23T12:31:05.000Z","updated_at":"2024-10-10T00:27:48.000Z","dependencies_parsed_at":"2022-08-31T13:53:55.198Z","dependency_job_id":null,"html_url":"https://github.com/yuriiik/ISVImageScrollView","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuriiik%2FISVImageScrollView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuriiik%2FISVImageScrollView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuriiik%2FISVImageScrollView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuriiik%2FISVImageScrollView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuriiik","download_url":"https://codeload.github.com/yuriiik/ISVImageScrollView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799931,"owners_count":21163403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-preview","ios","preview","uiscrollview"],"created_at":"2024-11-15T21:13:08.954Z","updated_at":"2025-04-14T00:01:57.088Z","avatar_url":"https://github.com/yuriiik.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ISVImageScrollView\n\n[![CI Status](http://img.shields.io/travis/kupratsevich@gmail.com/ISVImageScrollView.svg?style=flat)](https://travis-ci.org/kupratsevich@gmail.com/ISVImageScrollView)\n[![Version](https://img.shields.io/cocoapods/v/ISVImageScrollView.svg?style=flat)](http://cocoapods.org/pods/ISVImageScrollView)\n[![License](https://img.shields.io/cocoapods/l/ISVImageScrollView.svg?style=flat)](http://cocoapods.org/pods/ISVImageScrollView)\n[![Platform](https://img.shields.io/cocoapods/p/ISVImageScrollView.svg?style=flat)](http://cocoapods.org/pods/ISVImageScrollView)\n\nA subclass of the UIScrollView tweaked for image preview with zooming, scrolling and rotation support.\n\n## Overview\n\nWhen you need to incorporate an image preview into your application, usually you start with the UIScrollView and then spend hours tweaking it to get functionality similar to the default Photos app. This control provides you out-of-the-box functionality to zoom, scroll and rotate an UIImageView attached to it.\n\n## Features\n\n* Pinch to zoom and scroll\n* Tap to zoom\n* Scale image when scroll view bounds change, e.g. after rotation\n* Set appropriate content offset after rotation to make sure visible content remains the same\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n* Tested on iOS 9.3 and higher, but should work on iOS 8.x as well\n\n## Installation\n\n### CocoaPods\n\nISVImageScrollView is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```ruby\npod 'ISVImageScrollView'\n```\n\n### Swift Package Manager\n\nISVImageScrollView is also available via the Swift Package Manager.\n\n## Usage\n\nISVImageScrollView is very easy to use.\n1. Create a __UIImageView__ instance and assign it an image.\n2. Create an __ISVImageScrollView__ instance (either programmatically or via the Storyboard/XIB) and assign the created UIImageView object to its __imageView__ property.\n3. Don't forget to set __maximumZoomScale__ and __delegate__ properties of the ISVImageScrollView instance.\n4. Finally in delegate class implement __viewForZoomingInScrollView:__ method and return the UIImageView object created in step 1.\n\n```swift\nlet image = UIImage(named: \"Photo.jpg\")\nself.imageView = UIImageView(image: image)\nself.imageScrollView.imageView = self.imageView\nself.imageScrollView.maximumZoomScale = 4.0\nself.imageScrollView.delegate = self\n```\n```swift\nfunc viewForZooming(in scrollView: UIScrollView) -\u003e UIView? {\n  return self.imageView\n}\n```\n\n## Author\n\nYurii Kupratsevych\n\nkupratsevich@gmail.com\n\n## License\n\nISVImageScrollView is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuriiik%2Fisvimagescrollview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuriiik%2Fisvimagescrollview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuriiik%2Fisvimagescrollview/lists"}