Making a Swift app themeable

Recently I started working on a new side project which includes an iOS application written in Swift. Because it's a new project that should support multiple themes eventually, it seemed wise to add theming from the start. While there are multiple libraries that let you theme your app, including css-like…

Quick tip: Replacing text with sed

Sometimes you may find yourself needing to replace multiple occurrences of some string or expression in one or more text files. Recently I found myself in one of those scenario's, which inspired this short post. The problem at hand was the fact that property declarations in a fairly large Objective-C…

Using custom fonts with lining numbers on iOS

Using a custom font in your app can really improve it's look and feel. However, some fonts will render non-lining lowercase numbers by default. This works really well for regular text, but not so much when you're only using uppercase characters, as is often the case for header titles. A…

Playing with extensions in Swift

By now we all know Apple introduced a new language called Swift. Personally, despite not really having tinkered with it much yet, Swift seems to add a lot of great stuff like generics, higher order functions and extensions, to name a few. In Objective-C you can use categories to add…

Migrating to Ghost

From now on I'll be using Ghost as a blogging platform instead of Octopress. I migrated the handful of posts that were on my old blog and redirected urls from those posts to the migrated versions, so that shouldn't cause any problems. If you run into issues, please let me…

Listing Available Fonts on iOS

Note: This is an older post which was migrated to Ghost. iOS allows you to include and use custom fonts inside your app. This has been the case for a long time, but using custom fonts is increasing in popularity lately. However, actually using a custom font can be tricky,…