forked from BandarHL/BHTwitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJGProgressHUDShadow.h
37 lines (28 loc) · 1.08 KB
/
JGProgressHUDShadow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// JGProgressHUDShadow.h
// JGProgressHUD
//
// Created by Jonas Gessner on 25.09.17.
// Copyright © 2017 Jonas Gessner. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
A wrapper representing properties of a shadow.
*/
@interface JGProgressHUDShadow : NSObject
- (instancetype __nonnull)initWithColor:(UIColor *__nonnull)color offset:(CGSize)offset radius:(CGFloat)radius opacity:(float)opacity;
/** Convenience initializer. */
+ (instancetype __nonnull)shadowWithColor:(UIColor *__nonnull)color offset:(CGSize)offset radius:(CGFloat)radius opacity:(float)opacity;
/**
The color of the shadow. Colors created from patterns are currently NOT supported.
*/
@property (nonatomic, strong, readonly, nonnull) UIColor *color;
/** The shadow offset. */
@property (nonatomic, assign, readonly) CGSize offset;
/** The blur radius used to create the shadow. */
@property (nonatomic, assign, readonly) CGFloat radius;
/**
The opacity of the shadow. Specifying a value outside the [0,1] range will give undefined results.
*/
@property (nonatomic, assign, readonly) float opacity;
@end