Software Dev

Getting Started with Instruments

Has there ever been a more powerful, but under-utilised tool than Instruments?

Instruments is a tool included with Xcode that helps you analyze, profile, and debug your live iOS app. Solve memory leaks. Visualize memory. Monitor disk, network, memory, and battery usage. You can even find zombies. πŸ§Ÿβ€β™‚οΈ

It lets you do incredible things but is also overwhelming to new developers, in which case this Ray Wenderlich tutorial can come in pretty handy.

πŸ‘‰ Getting Started with Instruments

There’s also an Apple WWDC presentation with this same name. πŸ˜†

Visual Memory Debugger

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

Unofficial Sandwiches

I love the idea and name of this project.

Apple demonstrated how to build an app with SwiftUI by doing a detailed walk-through a Sandwiches app.

πŸ‘‰ Introduction to SwiftUI

But they didn’t give you the code! I guess that’s because they want you to write it yourself. πŸ€·πŸ»β€β™‚οΈ

Still, here is a working unofficial version of the Sandwiches app developed to help you along.

πŸ‘‰ GitHub: Unofficial Sandwiches

Via iOS Dev Weekly.

Software Dev

Scroll Views in Interface Builder

There are a couple of tricks to getting your scroll view working in an Xcode storyboard. The great fluffy.es blog carefully walks you through it. πŸ‘

πŸ‘‰ How to use scroll view in Interface Builder / Storyboard (Xcode 11)

This site also has some really helpful notes on intrinsic size. And a great series on Making Sense of Auto Layout. Who knew? This guy is good. He’s giving Ray Wenderlich a run for his money. 😲

constraint explanation