Type Erasure in Swift

Introduction Swift is heavily influenced by different programming paradigms from functional, imperative and object-oriented programming. This allows you as a developer to write very powerful and flexible code. Protocol oriented programming in Swift helps you to bypass problems of object oriented-pro...

Read More »

strong, weak, unowned - Reference Counting in Swift

This blog post explains how Apple's memory management in Swift. Even if it gets handled mostly automatic there are still some pitfalls. Choosing the correct reference type to describe the relationship between objects help you to avoid memory leaks. Automatic Reference Counting Apple's implementation...

Read More »

guard statement in Swift

The guard statement has been implemented in Swift 2.0. Since then there are quite a lot rumors about its usage. guard is not a general-purpose mechanism and this blog post wants to clarify some of these to help you understand WHEN and WHEN NOT to use this statement. It also explains differences betw...

Read More »