Preview photos for iOS written by Swift
- iOS 9.0 or later
- Xcode 10.0 or later
There is a way to use PaddingLabel in your project:
- Using CocoaPods
- Manually
pod 'PhotoPreviewer', '1.0'
Manually drag file PhotoPreviewViewController.swift to your project.
At this point your workspace should build without error. If you are having problem, post to the Issue and the community can help you solve it.
import PhotoPreviewer
let imageURLs = [URL(string: "https://geek-is-stupid.github.io/img/avatar-icon.png")!]
let photoPreviewVC = PhotoPreviewViewController(imageURLs: imageURLs, startAtIndex: 0)
photoPreviewVC.sourceImageView = yourImageView
present(photoPreviewVC, animated: true)
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request.
All source code is licensed under the MIT License.