https://github.com/anzfactory/anzsingleimageviewer
Simple Image Viewer
https://github.com/anzfactory/anzsingleimageviewer
cocoapods imageviewer ios swift swift4 xcode10
Last synced: 3 months ago
JSON representation
Simple Image Viewer
- Host: GitHub
- URL: https://github.com/anzfactory/anzsingleimageviewer
- Owner: anzfactory
- License: mit
- Created: 2018-09-28T11:16:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T10:59:49.000Z (almost 5 years ago)
- Last Synced: 2025-04-13T14:08:31.648Z (3 months ago)
- Topics: cocoapods, imageviewer, ios, swift, swift4, xcode10
- Language: Swift
- Size: 24.4 MB
- Stars: 3
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ANZSingleImageViewer
[](https://cocoapods.org/pods/ANZSingleImageViewer)
[](https://cocoapods.org/pods/ANZSingleImageViewer)
[](https://cocoapods.org/pods/ANZSingleImageViewer)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
- Xcode 10+
- Swift 4.2+
- iOS 8.0+## Installation
ANZSingleImageViewer is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'ANZSingleImageViewer'
```## Sample Usage
```swift
class ViewController: UIViewController {private func openImage(_ image: UIImage) {
ANZSingleImageViewer.showImage(image, toParent: self)
}
}
```### Zoom Transition
```swift
class ViewController: ANZSingleImageViewerSourceTransitionDelegate {func viewerTargetImageView() -> UIImageView? {
return targetImageView
}
}
```## Author
anzfactory, [email protected]
## License
ANZSingleImageViewer is available under the MIT license. See the LICENSE file for more info.
## CREDIT
[Unsplash](https://unsplash.com/)
- [Kelly Sikkema](https://unsplash.com/@kellysikkema)
- [Rich Hay](https://unsplash.com/@richexploration)
- [Vidar Nordli-Mathisen](https://unsplash.com/@vidarnm)
- [Toshi](https://unsplash.com/@toshidog)