Htet Moe Phyu·Apr 11, 2025Understanding the ‘Any’ Type in Swift✔️ Using Any to store mixed types, and AnyObject to store class instances of different types.
Chiau's Tech Insight Lab·May 9, 2024What is the difference between Any type and AnyObject type in Swift?In Swift, Any and AnyObject are two different types. Let’s start by explaining what is Any type.
Ranga C·Sep 11, 2023Any & AnyObject in iOSAny and AnyObject are two special type aliases in Swift that allow you to cast any value to a specific type.
Luna An·Nov 3, 2016Any vs. AnyObject in Swift 3.0When I encountered these two type aliases while parsing JSON data for the first time, I had no idea how to distinguish or implement them…A response icon20A response icon20