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
Squash bugs in less than a minute
Tired of wasting time debugging your mobile app? Instabug's SDK is here to help you minimize your debugging time by providing you with complete device details, network logs, and reproduction steps with every bug report. All data is attached automatically. It only takes one minute to setup. Get started for free.