Elektrine lite

← Feed

@mattiem@mastodon.social

Post #2625582

2026-04-30 15:34 UTC

@sjs@techhub.social hmm, I don't think you need to be too dogmatic about this. But it's a last resort. Pushing the task creation up as far as it can go is usually a good strategy. But eventually (like a button) there are limits. I also think it is bizarre that SwiftUI has no AsyncButton. Everyone needs this.

Replies (1)

  • @sjs@techhub.social 2026-04-30 17:29

    @mattiem@mastodon.social The specific case I have in mind is a UIView or UIViewController spinning up the task and calling an async method on a view-model/interactor of some kind. So it does feel like an AsyncButton scenario in spirit. In my mind I want the equivalent of the task modifier in UIKit.

    Open ##2625583