IOS

Difference between Task and async let

Task is for “fire-and-forget” use cases, which means you don’t need to handle the result when it’s done processing:

Task {
    await fetchData(for: user)
}

Async let is for parallel processing where you do have to process the results:

async let a = callA()
async let b = callB()
let results = await a + b
Standard
IOS

How to install and uninstall packages in Xcode

Right here: add through pasting a github URL. All done.

I love it when there’s an official way of managing packages. The evolution of even package management systems are just too much.

And how to uninstall: from the +/- button here. Not as friendly. Why couldn’t they have added a “remove package” option on the leftnav?

Standard