Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiragram/yhimageviewer
https://github.com/hiragram/yhimageviewer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hiragram/yhimageviewer
- Owner: hiragram
- License: mit
- Created: 2015-07-20T06:37:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-24T09:18:44.000Z (about 8 years ago)
- Last Synced: 2024-09-19T23:31:25.115Z (4 months ago)
- Language: Swift
- Size: 131 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YHImageViewer
[![Version](https://img.shields.io/cocoapods/v/YHImageViewer.svg?style=flat)](http://cocoapods.org/pods/YHImageViewer)
[![License](https://img.shields.io/cocoapods/l/YHImageViewer.svg?style=flat)](http://cocoapods.org/pods/YHImageViewer)
[![Platform](https://img.shields.io/cocoapods/p/YHImageViewer.svg?style=flat)](http://cocoapods.org/pods/YHImageViewer)YHImageViewer provides a simple way to show an image on fullscreen.
Minimum features are available. It is still under development.
Issues and PRs are welcome :)
## Screenshot
![Screenshot](https://raw.githubusercontent.com/wiki/hiragram/YHImageViewer/images/screenshot.gif)
## Installation
YHImageViewer is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "YHImageViewer"
```## Usage
To run the example project, clone the repo, and run `pod install` from the Example directory first.
In your ViewController class:
```swift
func imageTapped(recognizer:UITapGestureRecognizer) {
let imageViewer = YHImageViewer()
imageViewer.backgroundColor = UIColor.blackColor()
self.imageViewer = imageViewer
// ^- This line is required.
// If imageViewer is referenced by nothing,
// it will be released immediately and window will not appear.
imageViewer.show(sampleImageView)
}
```## Roadmaps
Some features under development can be seen in [issues](https://github.com/hiragram/YHImageViewer/issues) or [milestones](https://github.com/hiragram/YHImageViewer/milestones).
### v0.3 release
includes:
- [ ] Blurry background
- [ ] Custom view on background / foreground
- [ ] Manager class
- [ ] Drag animation with physics
- [ ] Some refactoring## Author
Yuya Hirayama / [@hiragram](http://twitter.com/hiragram) / [email protected]
Japanese and English are welcome.
## License
YHImageViewer is available under the MIT license. See the LICENSE file for more info.