Ios swift – Non-sendable type '[String : Any]?' exiting main actor-isolated context in call to non-isolated instance method XXX cannot cross actor boundary
I have a function that looks like this: public final class MyClass { static let shared = MyClass() public func doSomething(dictionary: [String: Any]? = nil) async -> UIViewController { return await UIViewController() } } I call it like this inside…