Software Dev

Debug network connections right from Xcode

Debugging live network traffic in your app is always interesting. There are some great apps for tracking your network connections, such as the cross-platform classic Charles Proxy, the more modern and Mac-assed alternative Proxyman, and even an embedded framework like Pulse.

And now with Xcode 13, you can forgo the third-party apps altogether if you so choose. This comes in especially handy if your company has third-party apps locked down. πŸ€·πŸ»β€β™‚οΈ

πŸ‘‰ Check out Inspecting HTTP Traffic With Instruments

Or go straight to the source with Apple’s WWDC session Analyze HTTP traffic in Instruments.

via iOS Dev Weekly.

Software Dev

Syncing Made (Kind of) Easy in Swift

Here’s a pretty amazing series and GitHub repo on mastering sychronizing data across iOS devices.

πŸ‘‰ Replicating Types in Swift

This is a really tough thing to do well, so this series looks incredibly helpful. The central idea is Conflict-Free Replicated Data Types (CRDTs).

I like this teaser under the headline “Where is the server?”

There is no truth β€” decentral apps rely on trust rather than truth.

Via iOS Dev Weekly.

Software Dev

It’s time to break up with your networking library for URLSession

πŸ‘‰ https://tim.engineering/break-up-third-party-networking-urlsession/

Maybe URLSession is good to use on its own! I like this idea as a simplifier. Just use what you have! I just did this in some of my own code and was really happy with the simplified result.

This came from iOS Dev Weekly…

 I liked this article by Tim Miko on how to build a simple API client with no dependencies. There’s a simple playground example too.

iOS Dev Weekly #398

On the other hand, PromiseKit still looks amazing.