Janvi Arora
Mar 18, 2023

--

This information is from various articles. Won't be able to give any specific article or documentation to go through.

But, for your reference,

@main is used to mark the entry point of the program, while @MainActor is used to mark properties and methods that require access to the main actor, which is responsible for executing UI-related tasks on the main thread.

And also you can refer to one of the comments for more detailed information.

I hope it helps!

--

--

No responses yet