Blog Archives

Any vs AnyObject vs NSObject in Swift 3

What is the difference between these three enigmatic types? A sometimes confusing topic, and to confuse things further Swift 3 has shaken it up by removing implicit bridging between Foundation and native data types. Aagh! Let’s get it straight by

Tagged with: ,
Posted in Swift

Any vs AnyObject vs NSObject

What is the difference between these three enigmatic types? A sometimes confusing topic, let’s get it straight. UPDATE: Things have changed in Swift 3! This post has been updated for Swift 3 here. You probably know Swift is a type-safe

Tagged with:
Posted in Swift