Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anzfactory/anzsingleimageviewer
Simple Image Viewer
https://github.com/anzfactory/anzsingleimageviewer
cocoapods imageviewer ios swift swift4 xcode10
Last synced: 4 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T10:59:49.000Z (over 4 years ago)
- Last Synced: 2024-10-14T22:21:46.206Z (4 months ago)
- Topics: cocoapods, imageviewer, ios, swift, swift4, xcode10
- Language: Swift
- Size: 24.4 MB
- Stars: 3
- Watchers: 1
- 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)