Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gh123man authored Oct 24, 2022
1 parent a8fd793 commit 245beb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct DetailsView: View {
Text("Details!")
Text("Refreshed: \(refreshed)")
}
.refresher { done in // Called when pulled to refresh
.refresher { // Called when pulled to refresh
await Task.sleep(seconds: 2)
refreshed += 1
}
Expand Down Expand Up @@ -125,7 +125,7 @@ If you prefer to call a completion to stop the refresher:
.refresher(style: .system) { done in
DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(1)) {
refreshed += 1
done()
done() // Call done to stop the refresher
}
}
```
```

0 comments on commit 245beb2

Please sign in to comment.