Latest 0.1.3
Homepage https://github.com/vienvu89/VTCameraPreviewView
License MIT
Platforms ios 8.0
Frameworks UIKit, AVFoundation
Authors

[![CI Status](http://img.shields.io/travis/Vien Vu/VTCameraPreviewView.svg?style=flat)](https://travis-ci.org/Vien Vu/VTCameraPreviewView)
Version
License
Platform

Example

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

Requirements

Xcode 7 and iOS 8 Above

Installation

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

pod 'VTCameraPreviewView'

Remember use

use_frameworks!

when you use pod swift.

Usage

You can put view from xib and make class is this class. And set camera isFront = yes or no . Done!

Or


import VTCameraPreviewView

.
.
.

override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.

    self.preview = VTCameraPreviewView(isFront: true)
}

override func viewDidLayoutSubviews() {
    super.viewDidLayoutSubviews()

     self.preview.frame = self.view.bounds
      self.view.addSubview(preiview)
}

And you can change camera by one line:


    self.preview.switchCamera()

Author

Vien Vu

License

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

Latest podspec

{
    "name": "VTCameraPreviewView",
    "version": "0.1.3",
    "summary": "A subclass of UIView. Allow you preview camera to view.",
    "description": "A subclass of UIView. Allow you preview camera to view. This is very simple to use. Just drag and choose you camera. It done!",
    "homepage": "https://github.com/vienvu89/VTCameraPreviewView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Vien Vu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/vienvu89/VTCameraPreviewView.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "VTCameraPreviewView/Classes/**/*",
    "frameworks": [
        "UIKit",
        "AVFoundation"
    ]
}

Pin It on Pinterest

Share This