From 756fa5363bf6b1734aba3d3d7e31a7e1eaba1d29 Mon Sep 17 00:00:00 2001 From: Andrew Walz Date: Mon, 2 Jan 2017 22:40:17 -0700 Subject: [PATCH] Fixing ACL's for SwiftyCamViewController --- Source/SwiftyCamViewController.swift | 10 +++++----- SwiftyCam.podspec | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/SwiftyCamViewController.swift b/Source/SwiftyCamViewController.swift index a5d913c..bea80d4 100644 --- a/Source/SwiftyCamViewController.swift +++ b/Source/SwiftyCamViewController.swift @@ -127,7 +127,7 @@ open class SwiftyCamViewController: UIViewController { disableFlash() } - func takePhoto() { + public func takePhoto() { if let videoConnection = photoFileOutput?.connection(withMediaType: AVMediaTypeVideo) { videoConnection.videoOrientation = AVCaptureVideoOrientation.portrait photoFileOutput?.captureStillImageAsynchronously(from: videoConnection, completionHandler: {(sampleBuffer, error) in @@ -140,7 +140,7 @@ open class SwiftyCamViewController: UIViewController { } } - func startVideoRecording() { + public func startVideoRecording() { guard let movieFileOutput = self.movieFileOutput else { return } @@ -176,7 +176,7 @@ open class SwiftyCamViewController: UIViewController { } } - func endVideoRecording() { + public func endVideoRecording() { if self.movieFileOutput?.isRecording == true { self.isVideRecording = false movieFileOutput!.stopRecording() @@ -184,7 +184,7 @@ open class SwiftyCamViewController: UIViewController { } } - func switchCamera() { + public func switchCamera() { guard isVideRecording != true else { print("[SwiftyCam]: Switching between cameras while recording video is not supported") return @@ -214,7 +214,7 @@ open class SwiftyCamViewController: UIViewController { disableFlash() } - func toggleFlash() { + public func toggleFlash() { guard self.currentCamera == .rear else { return } diff --git a/SwiftyCam.podspec b/SwiftyCam.podspec index ca2d548..339cc21 100644 --- a/SwiftyCam.podspec +++ b/SwiftyCam.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'SwiftyCam' - s.version = '1.0.1' + s.version = '1.1.0' s.summary = 'A Simple, Snapchat-style camera Framework written in Swift' s.ios.deployment_target = '8.0'