21 July 2019An extensive guide to formatting dates in SwiftiOS and macOS contain built in support for various ways to format dates, such as for human readable text and to show intervals between dates. At WWDC19, Apple added a new RelativeDateTimeFormatter, which formats relative dates from the current date, for example as "X days ago" or today as "today".
1 April 2019Extending Codable: loading images and colors from JSONRecently, I began work on an iOS app and had to work with Codable, a protocol that makes converting between Swift types and JSON data incredibly easy. In this blog post, I'll explain how to use UIImage or UIColor together with Codable, so that you can load themes or images from your server.