This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alex Littlejohn
committed
Jul 1, 2015
1 parent
b30dbd0
commit f1d6769
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,37 @@ | ||
# ALCameraViewController | ||
A camera view controller with custom image picker and image cropping. Written in Swift. | ||
|
||
### Features | ||
|
||
- Front facing andrear facing camera support | ||
- Simple and clean look with smooth animations | ||
- Custom image picker with permission checking | ||
- Image cropping (square only) | ||
|
||
### Installation & Requirements | ||
This project requires Xcode 6.3 to run and compiles with swift 1.2 | ||
|
||
ALCameraViewController is available on CocoaPods. Add the following to your Podfile: | ||
|
||
```ruby | ||
pod 'ALCameraViewController' | ||
``` | ||
|
||
### Usage | ||
|
||
To use this component couldn't be simpler. | ||
|
||
In your viewController | ||
```swift | ||
|
||
let croppingEnabled = true | ||
let cameraViewController = ALCameraViewController(croppingEnabled: croppingEnabled) { image in | ||
// Do something with your image here. | ||
// If cropping is enabled this image will be the cropped version | ||
} | ||
|
||
presentViewController(cameraViewController, animated: true, completion: nil) | ||
``` | ||
|
||
## License | ||
ALTextInputBar is available under the MIT license. See the LICENSE file for more info. |