Author Archives: Dejan Agostini

About Dejan Agostini

iOS developer@❤️ I’m just a guy passionate about technology who can’t wait to see what tomorrow brings.

[Book Review] App Architecture: iOS Application Design Patterns in Swift

I read a nice little book recently about architectural design patterns on iOS. The book was written by the well-known trio behind the objc.io website; Florian, Matt and Chris. It’s called App Architecture: iOS Application Design Patterns in Swift. We’ll do a quick review of the book in this article…. Read more »

Estimating Password Strength With zxcvbn

      No Comments on Estimating Password Strength With zxcvbn

Password strength meters are a great way to visually indicate to the users if their password is acceptable. Implementing one from scratch is no easy feat. Fortunately, dropbox has developed an open source library just for this purpose called zxcvbn. It’s multi-platform and easy to use. In this short article… Read more »

Memory Graph Debugging in Xcode

      3 Comments on Memory Graph Debugging in Xcode

We don’t have a garbage collector in swift, so we need to understand the memory graph of our apps. If we’re not careful with object references we can easily create strong reference cycles and leak memory. Sooner of later, you’ll find yourself hunting down that illusive memory leak. Fortunately, we… Read more »

Restoring Your UI With State Restoration

      1 Comment on Restoring Your UI With State Restoration

When your users are using your app, they expect it to behave like it’s constantly running. As you know, iOS can kill your app at any time in order to reclaim system resources. There’s an easy way to preserve the user interface across application starts. In this short article we’ll… Read more »

Measuring Performance with os_signpost

      No Comments on Measuring Performance with os_signpost

This year the logging framework got a bit of an update. The most notable is definitely the ability to add signposts throughout your code with the new os_signpost functions. Signposts are a great tool to measure the performance of your code and in this article we’ll set up signposts and… Read more »

Using AVSpeechSynthesizer

      No Comments on Using AVSpeechSynthesizer

AVSpeechSynthesizer is a part of the AVFoundation framework that’s used to convert text to spoken audio. It’s a great tool for converting text to speech and it works surprisingly well. In this short article we’ll be using AVSpeechSynthesizer on a small demo app. Text to Speech A long, long time ago… Read more »