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.

贡献者指南