Latest 0.1.2
Homepage https://github.com/mwaqasbhati/WBImageCropper
License MIT
Platforms ios 10.0
Authors

Version
License
Platform

WBImageCropper works for all type of input cropping mask and is implemented in Swift.*

About

WBImageCropper will provide you image editing & cropping functionality by just calling a 2 line to code. It made things easy that was never before.

Background

I have used many cropping tools but this library provides cropping stuff very user friendly.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

  • First Create a WBImageCropper Object with Image and Cropping Mask and then confirm to it’s delegate
let croppingView = WBImageCropperVC(CGRect(x: 0, y: view.frame.size.height/2, width: view.frame.size.width, height: 200), image: UIImage(named: "world")!)
croppingView.delegate = self
present(croppingView, animated: true, completion: nil)

ImageCropperDelegate

func pickedImageDidFinish(_ image: UIImage)
func pickedImageDidCancel(_ image: UIImage?)
Square Mask Rectangle Mask
Demo Demo

Requirements

  • iOS 9.4
  • Swift 4.1

Installation

Manually

Download the Code and Copy the file -> WBImageCropper.swift into your project. That’s it.

CocoaPods

WBImageCropper is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'WBImageCropper'

Author

mwaqasbhati, [email protected]

License

WBImageCropper is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "WBImageCropper",
    "version": "0.1.2",
    "summary": "This controller will provide you cropping of an image with different inout masks",
    "description": "This amazing library will provide you a user friendly view to do the cropping of an input image. We have to provide an input image and required cropping mask. we need to confirm to its delegate in which you will get the cropped image with the desired mask",
    "homepage": "https://github.com/mwaqasbhati/WBImageCropper",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "mwaqasbhati": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mwaqasbhati/WBImageCropper.git",
        "tag": "0.1.2"
    },
    "swift_version": "4.1",
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "WBImageCropper/Classes/**/*"
}

Pin It on Pinterest

Share This