Tag: Any

Tip: Deep Dive into Any? Dictionaries

In many factory methods, you’ll find parameters with type Any? like this: userInfo parameters in iOS and context in watchOS use these. You can place anything there, but most often, you’ll use a dictionary of type [String:Any]. This is a great way of moving… Continue Reading “Tip: Deep Dive into Any? Dictionaries”

What Do you do with Any?

There’s been a major change to Swift 3.0 That many people might find a little disturbing in code, and others may have no idea what it is. In one sense that’s the idea. Apple changed AnyObject to Any in Swift 3.0. This three-letter word is… Continue Reading “What Do you do with Any?”