mirror of
https://github.com/samsonjs/SwiftyCam.git
synced 2026-03-25 09:05:52 +00:00
Commit after merge
This commit is contained in:
parent
be817db1a6
commit
b90a09d590
1 changed files with 6 additions and 5 deletions
|
|
@ -238,13 +238,14 @@ open class SwiftyCamViewController: UIViewController {
|
|||
|
||||
override open func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
previewLayer = PreviewView(frame: CGRect(x: 0.0, y: 0.0, width: view.bounds.width, height: view.bounds.height))
|
||||
view = PreviewView(frame: view.frame)
|
||||
previewLayer = view as! PreviewView!
|
||||
|
||||
// Add Gesture Recognizers
|
||||
|
||||
addGestureRecognizersTo(view: previewLayer)
|
||||
addGestureRecognizersTo(view: view)
|
||||
|
||||
self.view.addSubview(previewLayer)
|
||||
//self.view.addSubview(previewLayer)
|
||||
previewLayer.session = session
|
||||
|
||||
// Test authorization status for Camera and Micophone
|
||||
|
|
@ -279,10 +280,10 @@ open class SwiftyCamViewController: UIViewController {
|
|||
/// ViewDidLayoutSubviews() Implementation
|
||||
|
||||
|
||||
override open func viewDidLayoutSubviews() {
|
||||
/*override open func viewDidLayoutSubviews() {
|
||||
previewLayer.frame = CGRect(x: 0.0, y: 0.0, width: view.bounds.width, height: view.bounds.height)
|
||||
super.viewDidLayoutSubviews()
|
||||
}
|
||||
} */
|
||||
|
||||
// MARK: ViewDidAppear
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue