Latest 1.0.2
Homepage https://github.com/FreshworksStudio/Cam
License MIT
Platforms ios 11.0
Dependencies Extended, Designer
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Alt Text

Installation

Cam is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Cam', '1.0.0'

Quick Usage

1) Import the library

import UIKit
import Cam

2) Create a Cam object

let camera = Cam()

3) Call Display

cam.display(on: self) { (photo) in

}

4) Process Photo

cam.display(on: self) { (photo) in
    if let photo = photo {
        // Example: displaying image on an imageview for 2 seconds
        let imageView = UIImageView(frame: self.view.frame)
        imageView.contentMode = .scaleAspectFit
        imageView.image = photo.image
        self.view.addSubview(imageView)
        DispatchQueue.main.asyncAfter(deadline: .now() + 2, execute: {
            imageView.removeFromSuperview()
        })
    }
}

Alt Text

Author

amirshayegh, [email protected]

License

Cam is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Cam",
    "version": "1.0.2",
    "summary": "In app Camera",
    "description": "A camera lanched within app",
    "homepage": "https://github.com/FreshworksStudio/Cam",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "amirshayegh": "[email protected]"
    },
    "source": {
        "git": "https://github.com/FreshworksStudio/Cam.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "Cam/Classes/**/*.{swift}",
    "resource_bundles": {
        "Cam": [
            "Cam/Classes/**/*.{storyboard,xib}",
            "Cam/Assets/*.png"
        ]
    },
    "dependencies": {
        "Extended": [],
        "Designer": []
    }
}

Pin It on Pinterest

Share This