Skip to content

Instantly share code, notes, and snippets.

@nevyn
Last active August 29, 2015 14:06
Show Gist options
  • Save nevyn/e5075585c7d61deddc04 to your computer and use it in GitHub Desktop.
Save nevyn/e5075585c7d61deddc04 to your computer and use it in GitHub Desktop.
LookbackPrivateAPIOverrides.m
#import <AVFoundation/AVFoundation.h>
@interface GFCameraRecorder : NSObject
@end
@interface GFCameraRecorder (PrivateAPIOverride)
+ (AVCaptureDevicePosition)captureDevicePosition;
@end
@implementation GFCameraRecorder (PrivateAPIOverride)
+ (AVCaptureDevicePosition)captureDevicePosition
{
return AVCaptureDevicePositionBack;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment