SwiftKickMobile/SwiftMessages

window being accessed from background thread when dequeueNext is called

Open

#535 aberto em 14 de nov. de 2023

Ver no GitHub
 (12 comments) (0 reactions) (0 assignees)Swift (754 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (7.449 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador