ecency-mobile/ios/Pods/QBImagePickerController/QBImagePicker/QBVideoIndicatorView.m
2018-11-28 00:22:44 +03:00

29 lines
692 B
Objective-C

//
// QBVideoIndicatorView.m
// QBImagePicker
//
// Created by Katsuma Tanaka on 2015/04/04.
// Copyright (c) 2015 Katsuma Tanaka. All rights reserved.
//
#import "QBVideoIndicatorView.h"
@implementation QBVideoIndicatorView
- (void)awakeFromNib
{
[super awakeFromNib];
// Add gradient layer
CAGradientLayer *gradientLayer = [CAGradientLayer layer];
gradientLayer.frame = self.bounds;
gradientLayer.colors = @[
(__bridge id)[[UIColor clearColor] CGColor],
(__bridge id)[[UIColor blackColor] CGColor]
];
[self.layer insertSublayer:gradientLayer atIndex:0];
}
@end