Using @MainActor values in initializer default arguments

I can't seem to figure out how to get default arguments to work with global actors. Marking either the class or the init method as MainActor doesn't seem to do anything.

@MainActor
class FakeFileDownloader: FileDownloader {
	@MainActor
	// Call to main actor-isolated initializer 'init()' in a synchronous nonisolated context
	init(sessionManager: SessionManager = SessionManager()) {
Terms of Service

Privacy Policy

Cookie Policy