From 1854061a8ec213e915e4baeedeb34e107ba4a0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=A9=E8=BE=BA=E7=BE=85?= Date: Mon, 29 Jun 2015 12:44:32 -0400 Subject: [PATCH] Add proper Swift pragma marks --- camera/CameraManager.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/camera/CameraManager.swift b/camera/CameraManager.swift index 0ee0ff8..99a9202 100644 --- a/camera/CameraManager.swift +++ b/camera/CameraManager.swift @@ -35,7 +35,7 @@ public enum CameraOutputQuality: Int { /// Class for handling iDevices custom camera usage public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate { - // PRAGMA MARK - Public properties + // MARK: - Public properties /// CameraManager singleton instance to use the camera. public class var sharedInstance: CameraManager { @@ -163,7 +163,7 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate { } } - // PRAGMA MARK - Private properties + // MARK: - Private properties private weak var embedingView: UIView? private var videoCompletition: ((videoURL: NSURL, error: NSError?) -> Void)? @@ -195,7 +195,7 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate { }() - // PRAGMA MARK - CameraManager + // MARK: - CameraManager /** Inits a capture session and adds a preview layer to the given view. Preview layer bounds will automaticaly be set to match given view. Default session is initialized with still image output. @@ -408,7 +408,7 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate { return self.cameraOutputQuality } - // PRAGMA MARK - AVCaptureFileOutputRecordingDelegate + // MARK: - AVCaptureFileOutputRecordingDelegate public func captureOutput(captureOutput: AVCaptureFileOutput!, didStartRecordingToOutputFileAtURL fileURL: NSURL!, fromConnections connections: [AnyObject]!) { @@ -443,7 +443,7 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate { } } - // PRAGMA MARK - CameraManager() + // MARK: - CameraManager() private func _updateTorch(flashMode: CameraFlashMode) {