SwiftKickMobile/SwiftMessages

window being accessed from background thread when dequeueNext is called

Open

#535 aperta il 14 nov 2023

Vedi su GitHub
 (12 commenti) (0 reazioni) (0 assegnatari)Swift (754 fork)batch import
bughelp wanted

Metriche repository

Star
 (7449 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor