In the current implementation made by Apple, we can see in the signature that the action isn't flagged as @MainActor
This is because the action isn't forced to run on the main actor, instead, it does inherit from the context actor.
This article explains it better than I would do.
I did remove the conformance to @MainActor to add @_inheritActorContext on the action parameter so we are ISO with the implementation in iOS>14
Describe your changes
In the current implementation made by Apple, we can see in the signature that the action isn't flagged as
@MainActor
This is because the action isn't forced to run on the main actor, instead, it does inherit from the context actor. This article explains it better than I would do.
I did remove the conformance to
@MainActor
to add@_inheritActorContext
on the action parameter so we are ISO with the implementation in iOS>14