Bug Fix -Media picker: Switching camera button and exit button are not very visible

#610

We added a black translucent background.
This commit is contained in:
giomfo
2016-09-20 10:47:17 +02:00
parent 9b2fb57943
commit 3af9b269ef
2 changed files with 22 additions and 14 deletions
@@ -129,6 +129,12 @@ static void *RecordingContext = &RecordingContext;
// Set camera preview background
self.cameraPreviewContainerView.backgroundColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1.0];
// The top buttons background is circular
self.closeButton.layer.cornerRadius = self.closeButton.frame.size.width / 2;
self.closeButton.clipsToBounds = YES;
self.cameraSwitchButton.layer.cornerRadius = self.cameraSwitchButton.frame.size.width / 2;
self.cameraSwitchButton.clipsToBounds = YES;
[self setBackgroundRecordingID:UIBackgroundTaskInvalid];
// Observe UIApplicationWillEnterForegroundNotification to refresh captures collection when app leaves the background state.