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",
29 "git": "https://github.com/yonat/CameraBackground.git",
32 "source_files": "Sources/*.swift",
37 "MultiToggleButton": [
41 "swift_version": "5.0",
46 "CameraBackground": "Sources/*.png"