mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 12:21:31 +03:00
29 lines
692 B
Objective-C
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
|