How to properly get rid of this concurrency compile error? – Ios swift
@MainActor class A {} class VC: UIViewController { let foo: A init() { self.foo = A() // Error: Call to main actor-isolated initializer 'init()' in a synchronous nonisolated context super.init(nibName: nil, bundle: nil) } @MainActor init() { self.foo = A()…