mirror of
https://github.com/faroukbmiled/RyukGram.git
synced 2026-04-22 12:16:15 +02:00
31 lines
740 B
Objective-C
31 lines
740 B
Objective-C
//
|
|
// JGProgressHUDShadow.m
|
|
// JGProgressHUD
|
|
//
|
|
// Created by Jonas Gessner on 25.09.17.
|
|
// Copyright © 2017 Jonas Gessner. All rights reserved.
|
|
//
|
|
|
|
#import "JGProgressHUDShadow.h"
|
|
|
|
@implementation JGProgressHUDShadow
|
|
|
|
+ (instancetype)shadowWithColor:(UIColor *)color offset:(CGSize)offset radius:(CGFloat)radius opacity:(float)opacity {
|
|
return [[self alloc] initWithColor:color offset:offset radius:radius opacity:opacity];
|
|
}
|
|
|
|
- (instancetype)initWithColor:(UIColor *)color offset:(CGSize)offset radius:(CGFloat)radius opacity:(float)opacity {
|
|
self = [super init];
|
|
|
|
if (self) {
|
|
_color = color;
|
|
_offset = offset;
|
|
_radius = radius;
|
|
_opacity = opacity;
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|