Hacker News new | ask | show | jobs
by grishka 1289 days ago
It's not isolated to iOS in particular — it's the case in every single GUI framework I've ever dealt with. Android for example would throw an exception if you try touching the views from another thread.
1 comments

It's a common pattern whenever you don't want the overhead of locks on every single function call. If you're doing anything CPU-intensive, you do it in another thread, synchronize and make API calls in the main thread.

I don't know how deeply animations are tied to the OS API, though.