diff --git a/Riot/Modules/Call/CallViewController.h b/Riot/Modules/Call/CallViewController.h index f3366c473..763b22ce3 100644 --- a/Riot/Modules/Call/CallViewController.h +++ b/Riot/Modules/Call/CallViewController.h @@ -30,6 +30,7 @@ // Effect views @property (weak, nonatomic) IBOutlet MXKImageView *blurredCallerImageView; +@property (weak, nonatomic) IBOutlet UIView *switchCameraGradientContainerView; // At the end of call, this flag indicates if the prompt to use the fallback should be displayed @property (nonatomic) BOOL shouldPromptForStunServerFallback; diff --git a/Riot/Modules/Call/CallViewController.m b/Riot/Modules/Call/CallViewController.m index b911624a6..0dec50e13 100644 --- a/Riot/Modules/Call/CallViewController.m +++ b/Riot/Modules/Call/CallViewController.m @@ -145,6 +145,16 @@ self.localPreviewContainerView.layer.borderWidth = 2; self.localPreviewContainerView.layer.cornerRadius = 5; self.localPreviewContainerView.clipsToBounds = YES; + + CAGradientLayer *gradient = [CAGradientLayer layer]; + + gradient.frame = self.switchCameraGradientContainerView.bounds; + gradient.colors = @[ + (id)[UIColor colorWithWhite:0.0 alpha:0.0].CGColor, + (id)[UIColor colorWithWhite:0.0 alpha:1.0].CGColor + ]; + + [self.switchCameraGradientContainerView.layer insertSublayer:gradient atIndex:0]; } - (void)viewWillDisappear:(BOOL)animated diff --git a/Riot/Modules/Call/CallViewController.xib b/Riot/Modules/Call/CallViewController.xib index 821dfd614..24915c9bf 100644 --- a/Riot/Modules/Call/CallViewController.xib +++ b/Riot/Modules/Call/CallViewController.xib @@ -1,9 +1,9 @@ - + - + @@ -20,24 +20,26 @@ - + + - + + - + @@ -77,21 +79,54 @@ -