프로젝트
GitHub에서 보기
wxxsw/GSImageViewerController
소개
An image viewer controller with zoom transition, in Swift.
디자인 및 미디어측정된 스타 증가
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGSImageViewerController
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.
관련 프로젝트 살펴보기
불러오는 중…