Skip to content

Commit

Permalink
Fix captured self
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH committed Oct 17, 2024
1 parent 83765c6 commit ba3aef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ViewModel/BrowserViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ final class BrowserViewModel: NSObject, ObservableObject,
}

isLoadingObserver = webView.observe(\.isLoading, options: .new) { [weak self] _, change in
Task { @MainActor in
Task { @MainActor [weak self] in
if change.newValue != self?.isLoading {
self?.isLoading = change.newValue
}
Expand Down

0 comments on commit ba3aef1

Please sign in to comment.