Desktop App Productivity ★ 4,002 stars on GitHub

coobjc

Write clean, sequential asynchronous code in Objective-C and Swift without messy nested callbacks.

Visit Official Site

Guide and Overview

What it does in plain English

This library brings modern coroutine support to Objective-C and Swift for mobile developers. It allows you to write complex background tasks and networking operations in a simple, step-by-step sequential style. By replacing complicated nested callback blocks, it helps prevent common multi-threaded crashes and makes code much easier to read.

Who it’s for

  • Mobile software engineers building high-performance iPhone and iPad applications.
  • Developers looking to eliminate messy nested callback code and error-prone asynchronous patterns.
  • Teams wanting to adopt modern asynchronous programming styles similar to Kotlin or C# within existing iOS projects.

Key features

  • Async/Await Support: Write asynchronous code that reads like regular sequential code, making complex operations simple to follow.
  • Generators: Produce values on the fly and stream data effortlessly between background tasks and user interface updates.
  • Actor Model: Safely organize application state and handle messages without wrestling with manual locks or threads.
  • Tuple Support: Easily bundle and unpack multiple return values from asynchronous operations.
  • System Helpers: Includes handy wrapper tools for common Foundation and UIKit elements like file managers and image handling.

How to install (Download)

To integrate the library into your project, you can use Cocoapods with the official configuration rules:

  • For Objective-C: add pod 'coobjc'
  • For Swift: add pod 'coswift'
  • For system wrappers: add pod 'cokit'

You can also browse the source files directly on the Official Source / Credits.

Pros and Cons

  • Pros: Simplifies asynchronous code significantly, highly performant scheduling, compatible with both Objective-C and Swift.
  • Cons: Requires adjusting to a coroutine-based programming model if you are used to traditional callback methods.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.