| { |
| "name": "CameraBackground", |
| "version": "1.0.0", |
| "summary": "Show camera layer as a background to any UIView.", |
| "description": "Features:\n\n* Both **front and back** camera supported.\n* **Flash** modes: auto, on, off.\n* Countdown **timer**.\n* Tap to **focus**.\n* Pinch to **zoom**.\n\nUsage:\n\n```swift\nview.addCameraBackground()\n// ...\nview.takeCameraSnapshot( {\n // animate snapshot capture\n self.view.alpha = 0\n UIView.animateWithDuration(1) { self.view.alpha = 1 }\n },\n completion: { (capturedImage, error) -> () in\n self.view.freeCameraSnapshot() // unfreeze image\n // ... handle capturedImage and error\n }\n)\n// ...\nview.removeCameraBackground()\n```", |
| "homepage": "https://github.com/yonat/CameraBackground", |
| "screenshots": [ |
| "https://raw.githubusercontent.com/yonat/CameraBackground/master/screenshots/focus.png", |
| "https://raw.githubusercontent.com/yonat/CameraBackground/master/screenshots/countdown.png" |
| ], |
| "license": { |
| "type": "MIT", |
| "file": "LICENSE.txt" |
| }, |
| "authors": { |
| "Yonat Sharon": "yonat@ootips.org" |
| }, |
| "social_media_url": "http://twitter.com/yonatsharon", |
| "platforms": { |
| "ios": "8.0" |
| }, |
| "source": { |
| "git": "https://github.com/yonat/CameraBackground.git", |
| "tag": "1.0.0" |
| }, |
| "source_files": "CameraBackground/*", |
| "requires_arc": true |
| } |