Skip to content

Crop UIImages with style! Provide the aspect ratio and the original image and let it do the rest.

License

Notifications You must be signed in to change notification settings

Dluzhnevsky/DDCropController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DDCropController

DDCropController is my take on a simple yet somewhat complicated task of providing users with a tool to crop the UIImage to a defined asepct ratio.

Screenshots

Image Image Image

Usage

Create a controller, passing the image and the aspect ratio and prepare to listen for its delegate meethod on completion.

Controller supports all combinations of both original image and crop rect's aspect ratios, which, as I've found out the hard way, is not the case in most of the other existent solutions.

The 'Cancel' and 'Crop' button texts can be provided on controller's creation for the localization and customization purposes. Otherwise the fallback generic English strings will be used instead.

Controller was designed to be simplistic and lightweight, with no storyboards and XIBs, and with minimum excessive layouting.

Usage in Projects

If you use the DDCropController in your published app and would like to be included in the usage list here – PM me the link! :-)

Contibutions

Contributions are welcome!

About

Crop UIImages with style! Provide the aspect ratio and the original image and let it do the rest.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages