I get asked so many times to recommend books on iOS development (and development in general). I was a bit surprised at first, but then when I stepped back and thought about it, it made sense. For someone who is starting in iOS books are still the best first step… Read more »
Today widgets are small view controllers that your users can add to their ‘Today’ view. They are good for displaying the most relevant information to your users. In this article we’re going to create a today widget and display a latest article for the accompanying app for this blog. Let’s… Read more »
Abstract factory is one of the creational design patterns. You probably encountered it in your development without realising. Here we’ll cover the swift version of the text-book version of the design pattern and say a few words about the dependency inversion principle. Abstract Factory We’re all taught to code to… Read more »
In Swift you’ll be constructing objects all the time. It might seem simple at first glance but initializers in Swift are a pretty deep topic. In this article we’ll cover designated and convenience initializers. We’ll touch a bit on the failable initializers, required initializers and initializers in structs. We’ll finish… Read more »
Sometimes it’s better to crash then to have your app running in an inconsistent state. In this short article we’ll cover the options you have for crashing and what are the main differences between them. There’s only five, with some subtle differences. Let’s dive in. Five Ways to Fail You… Read more »
Last week we covered some basics on Optionals. This week we’ll dive in a bit deeper. We’ll take a look at the implementation of the optionals, optional chaining, nil-coalescing operator and a few more goodies. Granted, you’ll probably do just fine knowing the basics, but it’s fun to know how… Read more »
Optionals are one of the major language features of Swift. Understanding what they are and how to use them will be crucial if you want to code in Swift. Hopefully, by the end of this article you’ll get a solid grasp of the foundations and you’ll be a happy swifter…. Read more »
You might have heard that some of the swift native types are being converted from classes to structures. In this article, we’ll explore structures and classes, we’ll talk about values, references, stacks and heaps. Hopefully, by the end of it, you’ll understand the differences between them. Reference Types and Value… Read more »
Handoff is a great way for your users to resume an activity on any device. Let’s say your users start reading an article on an iPhone, they can easily continue reading it right where they left off on the iPad, or even on the mac. In this article, we’ll see… Read more »
You probably found yourself in a situation where you had to do a bunch of asynchronous tasks and you just wanted to get notified when all of them finish. There are two easy ways of doing this: DispatchGroup and OperationQueue. We’ll cover them both in this post. The Story We’ll… Read more »