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: 2 months 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 (about 1 year ago)
- Last Synced: 2024-11-26T21:39:29.372Z (3 months 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
[](https://travis-ci.org/Krisiacik/ImageViewer)
[](https://developer.apple.com/swift/)
[](https://github.com/Carthage/Carthage)
[](http://cocoadocs.org/docsets/ImageViewer)
[](https://developer.apple.com/swift/)
[](https://opensource.org/licenses/MIT)

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