Skip to content

Commit

Permalink
Ability to enter a manual duration for custom view shown without status
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel G-Estañ committed May 16, 2019
1 parent c5618ee commit 7ed93b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions SVProgressHUD/SVProgressHUD.h
Expand Up @@ -142,6 +142,7 @@ typedef void (^SVProgressHUDDismissCompletion)(void);

// shows a view + status.
+ (void)showCustomView:(nonnull UIView*)view status:(nullable NSString*)status;
+ (void)showCustomView:(nonnull UIView *)view duration:(NSTimeInterval) displayInterval;

+ (void)setOffsetFromCenter:(UIOffset)offset;
+ (void)resetOffsetFromCenter;
Expand Down
3 changes: 3 additions & 0 deletions SVProgressHUD/SVProgressHUD.m
Expand Up @@ -376,6 +376,9 @@ + (void)showCustomView:(UIView *)view status:(NSString *)status {
[[self sharedView] showCustomView:view status:status duration:displayInterval];
}

+ (void)showCustomView:(UIView *)view duration:(NSTimeInterval) displayInterval {
[[self sharedView] showCustomView:view status:nil duration:displayInterval];
}

#pragma mark - Dismiss Methods

Expand Down

0 comments on commit 7ed93b2

Please sign in to comment.