Varga Zolt
Jun 17, 2022

--

By deafult it is main. But you need to be carefull with this statement because this is practically not true. E.g. you make some API call. Usually thread is switched to background. Then you want to update UI on main and you need explicitly to write this down. With swiftUI it is bit easier with @MainActor.

--

--

Varga Zolt
Varga Zolt

Written by Varga Zolt

 Mobile Tech Lead📱 🧑‍💻 Writing about new Technologies. Coding for fun since 2005, for food since 2008 🚀 Site: https://bit.ly/skyspiritlabs

Responses (1)