Skip to content
This repository was archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Ensure previewLayer is the right type depending on build
Browse files Browse the repository at this point in the history
- See #63
  • Loading branch information
Bryant Luk committed Apr 27, 2016
1 parent fabc925 commit 3a7760f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/CardIOVideoStream.mm
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ @interface CardIOVideoStream ()
@property(nonatomic, assign, readwrite) BOOL wasRunningBeforeBeingBackgrounded;
@property(nonatomic, assign, readwrite) BOOL didEndGeneratingDeviceOrientationNotifications;
@property(assign, readwrite) UIInterfaceOrientation interfaceOrientation; // intentionally atomic -- video frames are processed on a different thread
#if SIMULATE_CAMERA
@property(nonatomic, strong, readwrite) CALayer *previewLayer;
#else
@property(nonatomic, strong, readwrite) AVCaptureVideoPreviewLayer *previewLayer;
#endif
@property(nonatomic, strong, readwrite) AVCaptureSession *captureSession;
@property(nonatomic, strong, readwrite) AVCaptureDevice *camera;
@property(nonatomic, strong, readwrite) AVCaptureDeviceInput *cameraInput;
Expand Down

0 comments on commit 3a7760f

Please sign in to comment.