Latest 0.1.0
Homepage https://github.com/GeekTree0101/CookieFrameImageCropper
License MIT
Platforms ios 8.0
Dependencies SnapKit
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

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








Requirements

Installation

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

pod "CookieFrameImageCropper"

Author

GeekTree0101, [email protected]

Documantation

            _ = CookieFrameImageCropper.init(radius: imageView.bounds.height * 2)
                .setFrameMaskColor(UIColor.init(white: 0, alpha: 0.6))
                .setInnerFrameStroke(color: UIColor.init(red: 66/255, green: 134/255, blue: 244/255, alpha: 1), weight: 20)
                .setFrameBackgroundColor(UIColor.black)
                .setButton(backgroundColor: UIColor.init(red: 66/255, green: 134/255, blue: 244/255, alpha: 1))
                .present(by: self, image: loadedImage, callback: { img in
                    guard let image = img else { return }
                    self.imageView.image = image
                    self.profileBtn.isHidden = true
                })
  • setFrameMaskColor : outter frame color setting
  • setInnerFrameStroke: set innterFrame stroke weight with color
  • setButton : set button color
  • setFrameBackgroundColor : set background color on the image behavior area
  • present : present on UIViewController and input is UIImage with SuccessCallback(Cropped Image Callback)

The best way is Using UIImagePickerViewController for load image from Photo Album

you can see that on the example source

License

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

Latest podspec

{
    "name": "CookieFrameImageCropper",
    "version": "0.1.0",
    "summary": "Intuitive and Simple Image crop library for user experience.",
    "description": "Intuitive and Simple Image crop library for user experience, CookieFrameImageCropper get on the sail",
    "homepage": "https://github.com/GeekTree0101/CookieFrameImageCropper",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "GeekTree0101": "[email protected]"
    },
    "source": {
        "git": "https://github.com/GeekTree0101/CookieFrameImageCropper.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CookieFrameImageCropper/Classes/**/*",
    "frameworks": "UIKit",
    "dependencies": {
        "SnapKit": [
            "~> 3.0"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This