SwiftKickMobile/SwiftMessages

window being accessed from background thread when dequeueNext is called

開放

#535 建立於 2023年11月14日

 (12 則留言) (0 個反應) (0 位負責人)Swift (754 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (7,449 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

dequeueNext is being called from a background queue here.

This in turn does a check to the isOrphaned property here.

The isOrphaned property does a check to the view.window property here.

This triggers an XCode warning with "UIView.window must be used from main thread only". This can lead to possible crashes.

貢獻者指南