Category Archives: iOS

Dependency Managers: Carthage

      No Comments on Dependency Managers: Carthage

Carthage is a decentralised dependency manager for iOS/OSX. In this post, we’ll see how you can declare your project Carthage compatible and how to use Carthage in your projects. Carthage vs Cocoapods Carthage is a decentralised dependency manager. What this means is that, unlike Cocoapods, it does not rely on… Read more »

Unit Tests with Dependency Injection

A few weeks back I wrote an article on dependency injection and how to use it. Here I’ll cover how to use dependency injection in your unit tests. Dependency Injection I won’t talk a lot about dependency injection in this article, there’s a whole article on the subject, and I… Read more »

Design Patterns in Swift: Singleton

Everyone has heard of singletons. It’s probably the simplest design pattern there is, yet, there are a few catches when implementing it. In this post, I’ll go over the singleton design pattern and the little gotchas that might end up in a crash or an inconsistent state of the app. Singleton… Read more »

Using Dependency Injection

      No Comments on Using Dependency Injection

In this post, we’ll cover one very useful technique called dependency injection and we’ll look at some examples on to use it in your iOS project. What is it? Dependency Injection is a technique where you would inject dependencies into an object. Let’s say you’re building an app that will display… Read more »

Map Clustering with QuadTrees using GoogleMaps

In this article I’ll explain how to use map clustering with quad trees using GoogleMaps for iOS. This was done back in December 2015 as back then Google did not have map clustering available for iOS. Since then Google have implemented map clustering using the algorithm described. This was a… Read more »