Skip to content

Commit

Permalink
Continued work of phone call interruptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Awalz committed Aug 25, 2017
1 parent a98f190 commit a3a8c6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions DemoSwiftyCam/DemoSwiftyCam/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ class ViewController: SwiftyCamViewController, SwiftyCamViewControllerDelegate {
func swiftyCam(_ swiftyCam: SwiftyCamViewController, didSwitchCameras camera: SwiftyCamViewController.CameraSelection) {
print(camera)
}

func swiftyCam(_ swiftyCam: SwiftyCamViewController, didFailToRecordVideo error: Error) {
print(error)
}

@IBAction func cameraSwitchTapped(_ sender: Any) {
switchCamera()
Expand Down
3 changes: 0 additions & 3 deletions Source/SwiftyCamViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,6 @@ open class SwiftyCamViewController: UIViewController {
// MARK: ViewDidLayoutSubviews

/// ViewDidLayoutSubviews() Implementation
/// ViewDidLayoutSubviews() Implementation

private func updatePreviewLayer(layer: AVCaptureConnection, orientation: AVCaptureVideoOrientation) {

layer.videoOrientation = orientation
Expand Down Expand Up @@ -631,7 +629,6 @@ open class SwiftyCamViewController: UIViewController {
/// Configure image quality preset

fileprivate func configureVideoPreset() {

if currentCamera == .front {
session.sessionPreset = videoInputPresetFromVideoQuality(quality: .high)
} else {
Expand Down
2 changes: 1 addition & 1 deletion SwiftyCam.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'SwiftyCam'
s.version = '2.6.0'
s.version = '2.7.0'
s.summary = 'A Simple, Snapchat inspired camera Framework written in Swift'
s.ios.deployment_target = '8.0'

Expand Down

0 comments on commit a3a8c6e

Please sign in to comment.