How to fix/suppress a MainActor-based SwiftUI concurrency warning?

Even I encountered something similar Converting function value of type '@MainActor () -> ()' to '() -> Void' loses global actor 'MainActor'

I had filed a feedback for my issue, I am not sure if this is a bug either