Author Archives: Dejan Agostini

About Dejan Agostini

iOS developer@❤️ I’m just a guy passionate about technology who can’t wait to see what tomorrow brings.

Initializers in Swift

      No Comments on Initializers in Swift

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 »

Assert, Precondition and Fatal Error in Swift

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 »

Structures vs Classes in Swift

      4 Comments on Structures vs Classes in Swift

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 »