UIImageView_FaceAwareFill for iOS by Julio Andres

Download Source
by 4 people

(Click the stars to add your rating)

Selected as a Control of the Week

This category applies Aspect Fill content mode to an image and if faces are detected it centers them instead of centring the image just by its geometrical center.

INSTALLATION: FaceAwareFill is available through CocoaPods, to install it simply add the following line to your Podfile: pod "FaceAwareFill"

USAGE: Import the category to your .m file or to your "prefix" file.

#import "UIImageView+UIImageView_FaceAwareFill.h"

Then AFTER setting the image property of a UIImageView do:

[imageView faceAwareFill];

That's all.

License:
MIT
Language:
Objective-C
Sponsored with ❤️ by Instabug
Receive Detailed Feedback and Debug your iOS App 10x Faster
Instabug helps you collect feedback and bug/crash reports from your users and testers. Comprehensive reports are forwarded to Instabug’s dashboard including device details, network requests and most importantly, the reproduction steps. learn more.