Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Krisiacik/ImageViewer
An image viewer à la Twitter
https://github.com/Krisiacik/ImageViewer
Last synced: 4 days ago
JSON representation
An image viewer à la Twitter
- Host: GitHub
- URL: https://github.com/Krisiacik/ImageViewer
- Owner: Krisiacik
- License: mit
- Created: 2015-12-04T19:36:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T08:29:40.000Z (12 months ago)
- Last Synced: 2024-11-26T21:39:29.372Z (16 days ago)
- Language: Swift
- Homepage:
- Size: 85.9 MB
- Stars: 2,539
- Watchers: 57
- Forks: 388
- Open Issues: 66
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - ImageViewer - An image viewer à la Twitter. (Media / Image)
- awesome-swift - ImageViewer - An image viewer à la Twitter. (Libs / Images)
- awesome-swift - ImageViewer - An image viewer à la Twitter. (Libs / Images)
- awesome-ios-star - ImageViewer - An image viewer à la Twitter. (Media / Image)
- fucking-awesome-swift - ImageViewer - An image viewer à la Twitter. (Libs / Images)
- awesome-swift - ImageViewer - An image viewer à la Twitter ` 📝 2 years ago ` (Images [🔝](#readme))
README
[![CI Status](http://img.shields.io/travis/Krisiacik/ImageViewer.svg?style=flat)](https://travis-ci.org/Krisiacik/ImageViewer)
[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-green.svg?style=flat)](https://developer.apple.com/swift/)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Version](https://img.shields.io/cocoapods/v/ImageViewer.svg?style=flat)](http://cocoadocs.org/docsets/ImageViewer)
[![Platforms iOS](https://img.shields.io/badge/Platforms-iOS-lightgray.svg?style=flat)](https://developer.apple.com/swift/)
[![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=flat)](https://opensource.org/licenses/MIT)![Single image view](https://github.com/Krisiacik/ImageViewer/blob/master/Documentation/single.gif)
![Gallery](https://github.com/Krisiacik/ImageViewer/blob/master/Documentation/gallery.gif)
For the latest changes see the [CHANGELOG](CHANGELOG.md)
## Install
### CocoaPods
```ruby
pod 'ImageViewer'
```### Carthage
```ruby
github "Krisiacik/ImageViewer"
```## Sample Usage
For a detailed example, see the [Example](https://github.com/Krisiacik/ImageViewer/tree/master/Example)!
```swift
// Show the ImageViewer with the first item
self.presentImageGallery(GalleryViewController(startIndex: 0, itemsDataSource: self))// The GalleryItemsDataSource provides the items to show
extension ViewController: GalleryItemsDataSource {
func itemCount() -> Int {
return items.count
}func provideGalleryItem(_ index: Int) -> GalleryItem {
return items[index].galleryItem
}
}```
### ImageViewer version vs Swift version.
ImageViewer 6.0+ is Swift 5 ready! 🎉
If you use earlier version of Swift - refer to the table below:
| Swift version | ImageViewer version |
| ------------- | --------------------------------- |
| 5.x | >= 6.0 |
| 4.x | 5.0 |
| 3.x | 4.0 |
| 2.3 | 3.1 [⚠️](CHANGELOG.md#version-31) |
| 2.2 | <= 2.1 |## License
ImageViewer is licensed under the MIT License, Version 2.0. See the [LICENSE](LICENSE) file for more info.
Copyright (c) 2016 MailOnline