Remove gradient view at the back of switch camera button

This commit is contained in:
ismailgulek
2021-04-19 15:43:14 +03:00
parent c88aeadb1b
commit 8a17c74d44
3 changed files with 0 additions and 12 deletions
-10
View File
@@ -145,16 +145,6 @@
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