A framework that lists all photos in the album that contain faces.

Overview

FaceCollectionViewKit

A framework that lists all photos in the album that contain faces.

Features

  • It uses the detection features of CIDetectorTypeFace.
  • Scans all albums, presents you photos with face detected.
  • The quality of the photos does not deteriorate.
  • Detection settings can be changed.
  • Caching photo asset workaround.
  • Simple and fast.

Usage

Initialize

Firstly, use this wherever you want to show the album.

FaceCollectionViewKit.shared.initialize(for: YOUR_CUSTOM_VIEW)

Select Photo

This is triggered when you select a photo from the album, just call it once in viewDidLoad().

FaceCollectionViewKit.shared.imageSelected = { [weak self] image in
            //whatever you would like to do.
}

Cache Sync

Use this when exiting the screen with the album. Saves cached images.

override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        FaceCollectionViewKit.shared.sync()
}

Installation

CocoaPods

To integrate FaceCollectionViewKit into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'FaceCollectionViewKit', :git => 'https://github.com/serhatakalin/FaceCollectionViewKit.git'

Carthage

To integrate FaceCollectionViewKit into your Xcode project using Carthage, specify it in your Cartfile:

pod 'serhatakalin/FaceCollectionViewKit'

Manually

Add the Core folder to your Xcode project.

License

FaceCollectionViewKit is released under the MIT license. See LICENSE for more information.

You might also like...
Phimp.me - Photo Image Editor and Sharing App. Phimp.me is a Photo App for iOS that aims to replace proprietary photo applications. It offers features such as taking photos, adding filters, editing images and uploading them to social networks. iOS app to automagically control device torch/flash and capture photos
iOS app to automagically control device torch/flash and capture photos

BlobStar ✨ Version française 🇫🇷 iOS application to automagically control the device torch/flash and capture photos. The software was quickly drafted

A carousel of stacked items as seen in iMessage for photos

StackedItemsCarousel A carousel of stacked items (such as photos) as seen in iMessage What? iMessage on iOS 15 shows multiple photos in a carousel of

Starter project for Mars rover photos iOS app.

MarzyPan is an app that allows users to view photos taken by Mars rovers during their time on the planet. This is a starter project that has some UI

UnsplashPhotosApp - Photos app using Unsplash API
UnsplashPhotosApp - Photos app using Unsplash API

UnsplashPhotosApp If you like this open-source project please consider supportin

FlickrSearchPhotos - Simple search photos application which uses Flickr REST API made in Swift
FlickrSearchPhotos - Simple search photos application which uses Flickr REST API made in Swift

FlickrSearchPhotos - Simple search photos application which uses Flickr REST API made in Swift

Swiftly convert country codes and cultural terms to all 269 emoji flags without hassle
Swiftly convert country codes and cultural terms to all 269 emoji flags without hassle

Swiftly convert country codes and cultural terms to all 269 emoji flags without hassle

SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema matching to an image
SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema matching to an image

SwiftColorArt SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema mat

ImagePicker : an all-in-one camera solution for your iOS app
ImagePicker : an all-in-one camera solution for your iOS app

Description ImagePicker is an all-in-one camera solution for your iOS app. It lets your users select images from the library and take pictures at the

Owner
Serhat Akalın
iOS Engineer 
Serhat Akalın
Utilizing Apple's Vision Framework to center faces in CGImage.

FaceCrop CGImage extension that utilizes Apple's Vision Framework to detect and center faces. Usage cgImage.faceCrop { [weak self] result in switc

Ancestry.com 40 Nov 24, 2022
FacebookImagePicker is Facebook album photo picker written in Swift.

Features • Installation • Usage • Translation • License GBHFacebookImagePicker is Facebook's album photo picker written in Swift, built to provide a s

Florian Gabach 231 Dec 17, 2022
AR相册 Photo Album For AR

HeavenMemoirs - AR相册 线上地址 https://itunes.apple.com/cn/app/weare/id1304227680?mt=8 HeavenMemoirs 技术点 AR初始化 在新建项目时可以直接创建 AR 项目, xcode 会创造一个 AR 项目的模板. 也可

Heikki 677 Dec 6, 2022
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.

ImageDetect ImageDetect is a library developed on Swift. With ImageDetect you can easily detect and crop faces, texts or barcodes in your image with i

Arthur Sahakyan 299 Dec 17, 2022
A UIImageView extension to let the picture-cutting with faces showing better

UIImageView-BetterFace A UIImageView extension to let the picture-cutting with faces showing better Last update in v0.2_stable : add a UIImage+BetterF

Croath Liu 779 Sep 1, 2022
An extension that gives UIImageView the ability to focus on faces within an image.

FaceAware Sometimes the aspect ratios of images we need to work with don't quite fit within the confines of our UIImageViews. In most cases we can use

Beau Nouvelle 3k Jan 3, 2023
Crop faces, inside of your image, with iOS 11 Vision api.

FaceCropper Requirements Xcode 9.0 (beta) or higher. iOS 11.0 (beta) or higher. (It is possible to import this library under the iOS 11. But it won't

Taejun Kim 488 Dec 17, 2022
An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos.

This project is unmaintained. Alex passed away in an accident in late 2019. His love of iOS development will always be remembered. AXPhotoViewer AXPho

Alex Hill 596 Dec 30, 2022
DTPhotoViewerController - A fully customizable photo viewer ViewController to display single photo or collection of photos, inspired by Facebook photo viewer.

DTPhotoViewerController Example Demo video: https://youtu.be/aTLx4M4zsKk DTPhotoViewerController is very simple to use, if you want to display only on

Tung Vo 277 Dec 17, 2022
An iOS app that helps you check, edit and delete metadata of photos, including but not limited to EXIF, TIFF...

MetaX A simple iOS app that helps you check, edit and delete metadata of photos, including but not limited to EXIF, TIFF... Feature List main metadata

Yuhan Chen 189 Dec 29, 2022