Skip to content

Commit

Permalink
Removed deprecated sleep for method
Browse files Browse the repository at this point in the history
  • Loading branch information
zmian committed Feb 3, 2024
1 parent 500d14e commit 5fba6c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
21 changes: 0 additions & 21 deletions Sources/Xcore/Swift/Components/Concurrency/Task+Extensions.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Sources/Xcore/SwiftUI/Components/WebView/WebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ extension WebView {
$0.addAction(.valueChanged) { sender in
Task {
// Sleep under a second to properly show the control.
try await Task.sleep(seconds: 0.75)
try await Task.sleep(for: .seconds(0.75))
sender.endRefreshing()
webView.reload()
pullToRefreshHandler()
Expand Down

0 comments on commit 5fba6c8

Please sign in to comment.