Skip to content

Commit

Permalink
feat(ios): pull header feature to set refresh time
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonelmy committed Apr 16, 2021
1 parent c4321e5 commit 7b7746b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ios/sdk/component/refresh/HippyRefresh.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ - (void)refresh {
}

- (void)refreshFinish {
self.status = HippyRefreshStatusFinishLoading;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
self.status = HippyRefreshStatusIdle;
});
[self refreshFinishWithOption:@{@"time": @(2000)}];
}

- (void)refreshFinishWithOption:(NSDictionary *)options {
Expand Down

0 comments on commit 7b7746b

Please sign in to comment.