2 "name": "CameraBackground",
4 "summary": "Show camera layer as a background to any UIView.",
5 "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```",
6 "homepage": "https://github.com/yonat/CameraBackground",
8 "https://raw.githubusercontent.com/yonat/CameraBackground/master/screenshots/focus.png",
9 "https://raw.githubusercontent.com/yonat/CameraBackground/master/screenshots/countdown.png"
16 "Yonat Sharon": "yonat@ootips.org"
18 "social_media_url": "http://twitter.com/yonatsharon",
24 "git": "https://github.com/yonat/CameraBackground.git",
27 "source_files": "Sources/*.swift",
32 "MultiToggleButton": [
36 "pushed_with_swift_version": "3.0.1",
41 "CameraBackground": "Sources/*.png"