Update README.md
This commit is contained in:
parent
dd34c6468e
commit
004876d34e
|
|
@ -67,7 +67,7 @@ github "imaginary-cloud/CameraManager" >= 1.0
|
|||
And run `carthage update` to build the dynamic framework.
|
||||
|
||||
## How to use
|
||||
To use it you just add the preview layer to your desired view, you'll get back the state of the camera if it's unavailable, ready or the user denied assess to it. Have in mind that in order to retain the AVCaptureSession you will need to retain cameraManager instance somewhere, ex. as an instance constant.
|
||||
To use it you just add the preview layer to your desired view, you'll get back the state of the camera if it's unavailable, ready or the user denied access to it. Have in mind that in order to retain the AVCaptureSession you will need to retain cameraManager instance somewhere, ex. as an instance constant.
|
||||
```swift
|
||||
let cameraManager = CameraManager()
|
||||
cameraManager.addPreviewLayerToView(self.cameraView)
|
||||
|
|
|
|||
Loading…
Reference in New Issue