Skip to content

Commit

Permalink
Fix render lock
Browse files Browse the repository at this point in the history
  • Loading branch information
gh123man committed Sep 26, 2023
1 parent 8d72037 commit 6c31f4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Refresher/Refresher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ public struct RefreshableScrollView<Content: View, RefreshView: View>: View {
// strange animaton behaviors on some complex views
DispatchQueue.main.asyncAfter(deadline: .now() + config.holdTime) {
set(mode: .notRefreshing)
self.renderLock = false

DispatchQueue.main.asyncAfter(deadline: .now() + config.cooldown) {
self.canRefresh = true
self.isRefresherVisible = false
Expand Down

0 comments on commit 6c31f4f

Please sign in to comment.