sprint84/PhotoCropEditor
소개
Framework written in Swift for Cropping Images easily
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalPhotoCropEditor


This project is a Swift translation of the PEPhotoCropEditor. Version 1.0 doesn't add anything new, or fixes existing bugs. I want to slowly iterate on that, and if you want to contribute, let me know.
Check it out
To run the example project, clone the repo, and open the 'Example/Example.xcodeproj' file.
Requirements
This component is written using Swift and Dynamic Frameworks, so iOS 8.x is required. However you may want to manually import the source files into your project, if you need to support 7.x.
Installation
ProgressButton is available through Carthage. To install it, simply add the following line to your Cartfile:
github "sprint84/CropViewController" ~> 1.2
Installing Carthage
To install the carthage tool on your system, please download and run the Carthage.pkg file for the latest release, then follow the on-screen instructions.
Alternately, you can use Homebrew and install the carthage tool on your system simply by running brew update and brew install carthage.
For further details, please visit the Carthage Github page
Usage
First import the module into your project.
import CropViewController
You may use the view controller component, with the default buttons and appearance. We will add customization properties in the future.
let controller = CropViewController()
controller.delegate = self
controller.image = image
let navController = UINavigationController(rootViewController: controller)
presentViewController(navController, animated: true, completion: nil)
Alternatively, you can use the crop view directly, and incorporate it in your existing UI.
let cropView = CropView(frame: bounds)
view.addSubview(cropView)
Reading the cropped image
Using the delegate method on the View Controller:
func cropViewController(controller: CropViewController, didFinishCroppingImage image: UIImage) {
controller.dismissViewControllerAnimated(true, completion: nil)
imageView.image = image
}
Retrieving directly from the crop view
let croppedImage = cropView.croppedImage
Customization
Coming in the near future...
Author
Reefactor, Inc., [email protected]
License
ProgressButton is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…