Main actor-isolated class 'B' has different actor isolation from nonisolated superclass 'A' warning

I get these warnings after updating to Xcode 15.3 (Swift 5.10):

  • ASDisplayNode is an Objective-C third-party old library class.

But if I change the code like this:

There will be no warnings and everything works fine.

Are there any pitfalls that might be here?

1 Like

Bumping... will this really be a Swift 6 error or is this showing a Swift lang bug?

1 Like