Skip to content

Commit

Permalink
Update license and podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
justwudi committed May 9, 2016
1 parent 7ef8add commit aa9330c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 Wu Di, Georg Kitz
Copyright (c) 2016 Wu Di, Georg Kitz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ Ever wanted a custom crop area for the UIImagePickerController? Now you can have
```ruby
use_frameworks!

pod 'WDImagePicker', :git => 'https://github.com/justwudi/WDImagePicker.git', :tag => '0.1.1'
pod 'WDImagePicker', :git => 'https://github.com/justwudi/WDImagePicker.git', :tag => '0.2.2'
```
and run `pod install`

#### Manually

- just drag and drop the files in under "Classes" into your project.
- look at the sample code below.
- this project contains a sample project as well, just have a look at the implementation of `ViewController.swift`
- this project contains a sample project as well, just have a look at the implementation of `ViewController.swift`

### Sample Code

```swift
self.imagePicker = WDImagePicker()
self.imagePicker.cropSize = CGSizeMake(280, 90)
self.imagePicker.delegate = self

self.presentViewController(self.imagePicker.imagePickerController, animated: true, completion: nil)
```

Expand All @@ -34,15 +34,17 @@ This code results into the following controller + crop area:
![Sample Crop Image](https://raw.githubusercontent.com/justwudi/WDImagePicker/master/screenshot1.png)

It's even possible to let the user adjust the crop area by setting one additional property:

```swift
self.imagePicker.resizeableCropArea = true
```

This code results into the following controller + adjustable crop area:

![Sample Crop Image Adjustable](https://raw.githubusercontent.com/justwudi/WDImagePicker/master/screenshot2.png)

### License
Under MIT. See license file for details.




4 changes: 2 additions & 2 deletions WDImagePicker.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |s|
s.name = "WDImagePicker"
s.version = "0.1"
s.version = "0.2.2"
s.summary = "Image picker with custom crop rect for iOS written in Swift (Ported over from GKImagePicker)"
s.description = "With WDImagePicker and just 4 lines of code, you can set your custom crop area for UIImagePickerController. If you don't set it, it uses the same crop area as the default UIImagePickerController."
s.homepage = "https://github.com/justwudi/WDImagePicker"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Wu Di" => "[email protected]" }
s.platform = :ios
s.ios.deployment_target = '8.0'
s.source = { :git => 'https://github.com/justwudi/WDImagePicker.git', :tag => '0.1' }
s.source = { :git => 'https://github.com/justwudi/WDImagePicker.git', :tag => '0.2.2' }
s.source_files = "Classes/*.swift"
end

0 comments on commit aa9330c

Please sign in to comment.