项目
在 GitHub 查看
Krisiacik/ImageViewer
关于
Twitter 风格的图片查看器
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文

For the latest changes see the CHANGELOG
Install
CocoaPods
pod 'ImageViewer'
Carthage
github "Krisiacik/ImageViewer"
Sample Usage
For a detailed example, see the Example!
// 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 ⚠️ |
| 2.2 | <= 2.1 |
License
ImageViewer is licensed under the MIT License, Version 2.0. See the LICENSE file for more info.
Copyright (c) 2016 MailOnline
探索相关项目
加载中…