Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Assign value on the main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviocc committed Jan 5, 2021
1 parent 6621538 commit 036aa0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Pinboarding/Views/Refresh/RefreshViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ final class RefreshViewModel: ObservableObject {
self.repository = repository

self.activityCancellable = repository.networkActivityPublisher()
.receive(on: RunLoop.main)
.map { $0 == .loading }
.assign(to: \.isReloading, on: self)
}
Expand Down

0 comments on commit 036aa0b

Please sign in to comment.