ecency-mobile/ios/Pods/QBImagePickerController/QBImagePicker/QBVideoIndicatorView.m

29 lines
692 B
Mathematica
Raw Normal View History

2018-11-28 00:22:44 +03:00
//
// 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