TIL that you can decorate Swift protocol methods with @MainActor
and they’ll run on the main thread. So I can have part of my protocol be responsible for UI updates and decorate it but not the entire protocol that way. Super cool!
Jared Sorge
@jsorge