プロジェクト
概要
An image viewer controller with zoom transition, in Swift.
デザイン・メディア計測したスター増加
- 24時間
- -1
- 7日間
- -1
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルGSImageViewerController
Demo

Example
To show normal image viewer controller:
let imageInfo = GSImageInfo(image: someImage, imageMode: .aspectFit)
let imageViewer = GSImageViewerController(imageInfo: imageInfo)
navigationController?.pushViewController(imageViewer, animated: true)
To show zoom transition image viewer controller:
let imageInfo = GSImageInfo(image: someImage, imageMode: .aspectFill, imageHD: someHDImageURLOrNil)
let transitionInfo = GSTransitionInfo(fromView: someView)
let imageViewer = GSImageViewerController(imageInfo: imageInfo, transitionInfo: transitionInfo)
present(imageViewer, animated: true, completion: nil)
Requirements
1.6.4
- iOS 8.0+
- Xcode 10.2+ (Swift 5)
CocoaPods users should use
GSImageViewerController1.6.4 or newer to match the current example code, includingGSTransitionInfo.Animation.
1.5.2
- iOS 8.0+
- Xcode 10 (Swift 4.2)
1.4.2
- iOS 8.0+
- Xcode 9 (Swift 4)
1.2.1
- iOS 8.0+
- Xcode 8 (Swift 3)
1.1.1
- iOS 7.0+
- Xcode 7 (Swift 2)
Installation
CocoaPods:
In your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod "GSImageViewerController"
And in your *.swift:
import GSImageViewerController
License
GSImageViewerController is available under the MIT license. See the LICENSE file for more info.
関連プロジェクトを探す
読み込み中…