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 »

The new Android Permissions Model

With Android 6.0 Marshmallow (API 23) Google has finally included a new permissions model similar to iOS. What's new? The new model is quite a change for app developers, because they have to handle permission requests at runtime and can't rely on the fact that they are automatically granted by insta...

Read More »