swift

A better NSNotificationCenter

NSNotificationCenter has been around for a long time. It let's you post arbitrary notifications and decouples the source of the action from the destination. There are a few flaws though: »

Working with URLs

It's cumbersome to work with NSURL with all its verbosity. Here's a sweet way to make that all better with Swift. import Foundation func +(lhs: NSURL, rhs:String) -> »

JSON and Swift

Many have tried to tackle the issue and there're now some really good solutions. Here are just a handful of them and there are 2 main categories. Some solutions make »

Using proportional fonts

In case you've wanted to create interfaces that mimic the precision of the clock on the iOS lock screen. Here's snippet that allows you to activate font features that enable »

Parsing query parameters

While working my new app Jibber, over the last couple of weeks, I needed to quickly parse a url and obtain the query parameters. We could do this by breaking »