| { |
| "name": "CameraBackground", |
| "version": "1.6.3", |
| "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", |
| "swift_versions": [ |
| "4.2", |
| "5.0", |
| "5.0" |
| ], |
| "platforms": { |
| "ios": "9.0" |
| }, |
| "requires_arc": true, |
| "source": { |
| "git": "https://github.com/yonat/CameraBackground.git", |
| "tag": "1.6.3" |
| }, |
| "source_files": "Sources/*.swift", |
| "dependencies": { |
| "SweeterSwift": [ |
| |
| ], |
| "MultiToggleButton": [ |
| |
| ] |
| }, |
| "swift_version": "5.0", |
| "subspecs": [ |
| { |
| "name": "Resources", |
| "resource_bundles": { |
| "CameraBackground": "Sources/*.png" |
| } |
| } |
| ] |
| } |