Commit 4500782a by Daniel Dahan

updated variable o to orientation

parent 628219e3
...@@ -359,18 +359,18 @@ public class CaptureSession : NSObject, AVCaptureFileOutputRecordingDelegate { ...@@ -359,18 +359,18 @@ public class CaptureSession : NSObject, AVCaptureFileOutputRecordingDelegate {
/// The capture video orientation. /// The capture video orientation.
public var videoOrientation: AVCaptureVideoOrientation { public var videoOrientation: AVCaptureVideoOrientation {
var o: AVCaptureVideoOrientation var orientation: AVCaptureVideoOrientation
switch UIDevice.currentDevice().orientation { switch UIDevice.currentDevice().orientation {
case .Portrait: case .Portrait:
o = .Portrait orientation = .Portrait
case .LandscapeRight: case .LandscapeRight:
o = .LandscapeLeft orientation = .LandscapeLeft
case .PortraitUpsideDown: case .PortraitUpsideDown:
o = .PortraitUpsideDown orientation = .PortraitUpsideDown
default: default:
o = .LandscapeRight orientation = .LandscapeRight
} }
return o return orientation
} }
/// A delegation property for CaptureSessionDelegate. /// A delegation property for CaptureSessionDelegate.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment