Tag Archives: swift

Sharing Data Between Applications and Extensions Using App Groups

If you ever needed to share data between your iOS apps and/or your application targets, there’s a very easy way to do this using app groups. In this post we’ll see how to share data between two apps and we’ll even build a small library that will make sharing of… Read more »

Understanding Operation and OperationQueue in Swift

There are more ways than one to do concurrent operations on iOS. In this article, we’ll cover how to use Operations and OperationQueue to execute concurrent operations. There’s a lot to be said (and written) about concurrency on iOS and I don’t really want to bore you to death by… Read more »

Memory Management in Swift: The Strong, The Weak and The Unowned

If you started your iOS development career in Objective-C, especially pre ARC Objective-C, you’re probably very familiar with the above-mentioned concepts. If you started with Swift, some of them might be a bit murky, hopefully, by the end of this post, you’ll get to know them a bit better. A… Read more »

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 »

Design Patterns in Swift: Singleton

      16 Comments on 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 »

Creating a Temperature Sensor for iOS Using BLE and Arduino

Today we’ll create something cool, a temperature sensor and an iOS app that connects to it. For this project, we’ll be using an Arduino with a BLE breakout circuit. On the iOS side, we’ll be using CoreBluetooth. Don’t worry if some of these things are unfamiliar to you, I’ll try to… Read more »