Skip to content

Commit a78382c

Browse files
committed
Version 0.1.5 - Extra
1 parent 00a7188 commit a78382c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Example/SCCatWaitingHUD/SCViewController.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
2626
{
2727
if(![SCCatWaitingHUD sharedInstance].isAnimating)
2828
{
29-
[[SCCatWaitingHUD sharedInstance] animateWithInteractionEnabled:YES]; }
29+
[[SCCatWaitingHUD sharedInstance] animateWithInteractionEnabled:YES];
30+
}
3031
else
3132
{
3233
[[SCCatWaitingHUD sharedInstance] stop];

Pod/Classes/SCCatWaitingHUD.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ @interface SCCatWaitingHUD()
2323
* Time duration for HUD display and disappear.
2424
*/
2525
@property (nonatomic) CGFloat easeInDuration;
26-
2726
@end
2827

2928
@implementation SCCatWaitingHUD
@@ -43,7 +42,8 @@ - (id)initWithFrame:(CGRect)frame
4342
self = [super initWithFrame:frame];
4443
if(self)
4544
{
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;
4747
self.easeInDuration = self.animationDuration * 0.25f;
4848

4949
[[NSNotificationCenter defaultCenter] addObserver:self

0 commit comments

Comments
 (0)