DTPhotoViewerController alternatives and similar libraries
Based on the "Images" category.
Alternatively, view DTPhotoViewerController alternatives based on common mentions on social networks and blogs.
-
SDWebImage
Asynchronous image downloader with cache support as a UIImageView category -
Kingfisher
A lightweight, pure-Swift library for downloading and caching images from the web. -
SwiftGen-Assets
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
GPUImage 2
GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing. -
HanekeSwift
A lightweight generic cache for iOS written in Swift with extra love for images. -
YPImagePicker
📸 Instagram-like image picker & filters for iOS -
AlamofireImage
AlamofireImage is an image component library for Alamofire -
SkyFloatingLabelTextField
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift. -
UIImageColors
Fetches the most dominant and prominent colors from an image. -
gifu
High-performance animated GIF support for iOS in Swift -
Brightroom
📷 A composable image editor using Core Image and Metal. [Moved to: https://github.com/FluidGroup/Brightroom] -
GPUImage 3
GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal. -
Pixel
📷 A composable image editor using Core Image and Metal. -
APNGKit
High performance and delightful way to play with APNG format in iOS. -
TinyCrayon
A smart and easy-to-use image masking and cutout SDK for mobile apps. -
SwiftSVG
A simple, performant, and lightweight SVG parser -
Lightbox
:milky_way: A convenient and easy to use image viewer for your iOS app -
SwiftGif
[UNMAINTAINED] 🌠 A small UIImage extension with gif support -
Sharaku
(Not maintained)Image filtering UI library like Instagram. -
CTPanoramaView
A library that displays spherical or cylindrical panoramas with touch or motion based controls. -
ImageScout
A Swift implementation of fastimage. Supports PNG, GIF, and JPEG. -
FMPhotoPicker
A modern, simple and zero-dependency photo picker with an elegant and customizable image editor -
Agrume
🍋 A lemony fresh iOS image viewer written in Swift. -
AXPhotoViewer
An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos. -
PassportScanner
Scan the MRZ code of a passport and extract the firstname, lastname, passport number, nationality, date of birth, expiration date and personal numer. -
XAnimatedImage
XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage -
Viewer
Image viewer (or Lightbox) with support for local and remote videos and images -
JLStickerTextView
add text(multiple line support) to imageView, edit, rotate or resize them as you want, then render the text on image -
UIImageView-BetterFace-Swift
autoresize images and if any face discovered refine the position of the image. -
MapleBacon
🍁🥓 Lightweight and fast Swift library for image downloading, caching and transformations -
Moa
An image download extension of the image view written in Swift for iOS, tvOS and macOS. -
KFSwiftImageLoader
An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and Watch. -
MCScratchImageView
A custom ImageView that is used to cover the surface of other view like a scratch card, user can swipe the mulch to see the view below. -
ImageLoader
A lightweight and fast image loader for iOS written in Swift. -
ImageDetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api. -
FacebookImagePicker
FacebookImagePicker is Facebook album photo picker written in Swift. -
SwiftColorArt
font schema generator according image colours. -
ZImageCropper
A Swift 5 repo to crop image in any shape. -
LetterAvatarKit
An extension that generates letter-based avatars/placeholders -
Harbeth
Metal API for GPU accelerated Image and Video and Camera filter framework. Support macOS & iOS. 🎨 图像、视频、相机滤镜框架
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of DTPhotoViewerController or a related project?
README
DTPhotoViewerController
Example
[Screenshot](demo.gif)
Demo video: https://youtu.be/aTLx4M4zsKk
DTPhotoViewerController is very simple to use, if you want to display only one image in the photo viewer, all you need to do is to pass UIImageView and UIImage instances:
if let viewController = DTPhotoViewerController(referencedView: imageView, image: image) {
self.presentViewController(viewController, animated: true, completion: nil)
}
For multiple images, what you have to do is providing an dataSource to the DTPhotoViewerController instance. DTPhotoViewerControllerDataSource has three required methods and one optional method, here is an example how to implement them which is also available in the Demo:
func photoViewerController(_ photoViewerController: DTPhotoViewerController, referencedViewForPhotoAt index: Int) -> UIView? {
let indexPath = IndexPath(item: index, section: 0)
if let cell = self.collectionView?.cellForItem(at: indexPath) as? CollectionViewCell {
return cell.imageView
}
return nil
}
func numberOfItems(in photoViewerController: DTPhotoViewerController) -> Int {
return images.count
}
func photoViewerController(_ photoViewerController: DTPhotoViewerController, configureCell cell: DTPhotoCollectionViewCell, forPhotoAt index: Int) {
// You need to implement this method usually when using custom DTPhotoCollectionViewCell and configure each photo differently.
}
func photoViewerController(_ photoViewerController: DTPhotoViewerController, configurePhotoAt index: Int, withImageView imageView: UIImageView) {
imageView.image = images[index]
}
In case you want to add more UI elements to each photo, the best way is to create a subclass of DTPhotoCollectionViewCell and then call either one of these methods registerClassPhotoViewer: or registerNibForPhotoViewer:
if let viewController = BDFPostPhotoViewerController(referencedView: cell.imageView, image: cell.imageView.image) {
viewController.registerClassPhotoViewer(DTCustomPhotoCollectionViewCell.self)
}
There is also delegate(DTPhotoViewerControllerDelegate) if you want to customize the behavior of DTPhotoViewerController.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
CocoaPods
DTPhotoViewerController is available through CocoaPods. To install it, simply add the following line to your Podfile:
For Swift 5:
pod "DTPhotoViewerController"
For Swift 4.2:
pod 'DTPhotoViewerController', '~> 1.2.5'
Swift package manager
DTPhotoViewerController
is available for SPM from version 3.0.2
.
Add the following to the dependencies of your Package.swift
:
.package(url: "https://github.com/tungvoduc/DTPhotoViewerController", from: "version")
Author
Tung Vo, [email protected]
License
DTPhotoViewerController is available under the MIT license. See the LICENSE file for more info.
Feedbacks & requests
- Open an issue if you find a bug, make a proposal or simply need some help.
- You can also contact me via email.
*Note that all licence references and agreements mentioned in the DTPhotoViewerController README section above
are relevant to that project's source code only.