Wrong error: Class property 'X' isolated to global actor 'MainActor' can not be referenced from a non-isolated synchronous context #59484
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Describe the bug
UIApplication.willTerminateNotification
should accessible in non-isolated synchronous contextTo Reproduce
Steps to reproduce the behavior:
UIApplication.willTerminateNotification
from an actor. Either from isolated or non isolated functionor
Expected behavior
Code is compiled
Screenshots
Environment (please complete the following information):
Additional context
Workaround for a problem would be:
and then reference it when necessary as
Constants.uiApplicationWillTerminate
The text was updated successfully, but these errors were encountered: