An Extension for Safe Area Layout Guides

Back in 2013 Apple introduced layout guides as part of the iOS 7 auto-layout. The topLayoutGuide and bottomLayoutGuide are properties of UIViewController and help you to safely align your view in the root view. Apple pays attention that your view doesn't clip behind the status bar or navigation bar...

Read More »

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 »

Installing tvOS 11 beta on an AppleTV 4 without an USB-C cable

Update (28. Jul. 2017) : This blog post also works with the latest versions of tvOS 11 beta! I recently installed the public iOS 10 beta to try all of these fancy new features. Unfortunately I had to find out that remote controlling my homekit devices stopped working. Normally AppleTV acts like a h...

Read More »