SwiftKickMobile/SwiftMessages

window being accessed from background thread when dequeueNext is called

Open

#535 建立於 2023年11月14日

在 GitHub 查看
 (12 留言) (0 反應) (0 負責人)Swift (754 fork)batch import
bughelp wanted

倉庫指標

Star
 (7,449 star)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南