Skip to content

Commit

Permalink
Blank slate to logged in with client choice working.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hoerl committed Mar 17, 2016
1 parent ccaca8b commit e50e054
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ATMHud.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ - (void)setImage:(UIImage *)image
hudView.image = image;
}

#if 1
- (void)setActivity:(BOOL)activity
{
hudView.showActivity = activity;
Expand All @@ -232,6 +233,24 @@ - (void)changeColor
hudView.activity.color = [UIColor blackColor];
[UIView animateWithDuration:.250+_animateDuration animations: ^{ hudView.activity.alpha = 1; }];
}
#else // in case need to test some other better solution
- (void)setActivity:(BOOL)activity
{
hudView.showActivity = activity;
if (activity) {
assert([NSThread isMainThread]);
hudView.activity.color = [UIColor colorWithRed:252.0/255.0 green:113.0/255.0 blue:9.0/255.0 alpha:1.0];
[hudView.activity startAnimating];
} else {
[hudView.activity stopAnimating];
}
}
- (void)changeColor
{
NSLog(@"?????!!!");
}
#endif

- (void)setActivityStyle:(UIActivityIndicatorViewStyle)activityStyle
{
Expand Down
Binary file not shown.

0 comments on commit e50e054

Please sign in to comment.