@MainActor on public UI types? #785
                  
                    
                      NikolayJuly
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I'm experementing with cross-platform code in my app. And swift6 really pushes on usage of @mainactor on everything UI related.
I see that this package has 0 usage of @mainactor. But google tells me that windows UI framework win32 is not threadsafe and has some dedicated thread for UI. Also this package follow UIKit naming and approach, so I would expect that all UI will be annoted with @mainactor.
Reason for me is simple - my routers already has @mainactor on their methods. So it is just convinience to have windows UI to have @mainactor usage too. And same got to scene and app delegate.
Beta Was this translation helpful? Give feedback.
All reactions