SwiftKickMobile/SwiftMessages

window being accessed from background thread when dequeueNext is called

Open

#535 ouverte le 14 nov. 2023

Voir sur GitHub
 (12 commentaires) (0 réactions) (0 assignés)Swift (754 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (7 449 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur