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.