File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
26
26
{
27
27
if (![SCCatWaitingHUD sharedInstance ].isAnimating )
28
28
{
29
- [[SCCatWaitingHUD sharedInstance ] animateWithInteractionEnabled: YES ]; }
29
+ [[SCCatWaitingHUD sharedInstance ] animateWithInteractionEnabled: YES ];
30
+ }
30
31
else
31
32
{
32
33
[[SCCatWaitingHUD sharedInstance ] stop ];
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ @interface SCCatWaitingHUD()
23
23
* Time duration for HUD display and disappear.
24
24
*/
25
25
@property (nonatomic ) CGFloat easeInDuration;
26
-
27
26
@end
28
27
29
28
@implementation SCCatWaitingHUD
@@ -43,7 +42,8 @@ - (id)initWithFrame:(CGRect)frame
43
42
self = [super initWithFrame: frame];
44
43
if (self)
45
44
{
46
- self.animationDuration = 1 .5f ;
45
+ // Recommended duration would be 2.0 seconds. Represents half of the time of each loop.
46
+ self.animationDuration = 2 .0f ;
47
47
self.easeInDuration = self.animationDuration * 0 .25f ;
48
48
49
49
[[NSNotificationCenter defaultCenter ] addObserver: self
You can’t perform that action at this time.
0 commit comments