fix: configure header code not dispatch on UI thread issue
This commit is contained in:
parent
4d5d9477fc
commit
8b7b6c4067
|
@ -130,6 +130,7 @@ extension StatusView {
|
||||||
authorization: authenticationBox.userAuthorization
|
authorization: authenticationBox.userAuthorization
|
||||||
).singleOutput()
|
).singleOutput()
|
||||||
}
|
}
|
||||||
|
.receive(on: DispatchQueue.main)
|
||||||
.sink { completion in
|
.sink { completion in
|
||||||
// do nothing
|
// do nothing
|
||||||
} receiveValue: { [weak self] response in
|
} receiveValue: { [weak self] response in
|
||||||
|
|
|
@ -203,6 +203,7 @@ extension StatusView.ViewModel {
|
||||||
statusView.headerInfoLabel.configure(content: info.header)
|
statusView.headerInfoLabel.configure(content: info.header)
|
||||||
statusView.setHeaderDisplay()
|
statusView.setHeaderDisplay()
|
||||||
case .reply(let info):
|
case .reply(let info):
|
||||||
|
assert(Thread.isMainThread)
|
||||||
statusView.headerIconImageView.image = UIImage(systemName: "arrowshape.turn.up.left.fill")
|
statusView.headerIconImageView.image = UIImage(systemName: "arrowshape.turn.up.left.fill")
|
||||||
statusView.headerInfoLabel.configure(content: info.header)
|
statusView.headerInfoLabel.configure(content: info.header)
|
||||||
statusView.setHeaderDisplay()
|
statusView.setHeaderDisplay()
|
||||||
|
|
Loading…
Reference in New Issue