Skip to content

Instantly share code, notes, and snippets.

@shantaramk
Last active February 12, 2020 06:17
Show Gist options
  • Save shantaramk/0189c839dc5e2819342416b56aa65b52 to your computer and use it in GitHub Desktop.
Save shantaramk/0189c839dc5e2819342416b56aa65b52 to your computer and use it in GitHub Desktop.
Difference between Array VS NSArray VS [AnyObject]

Array NSArray [AnyObject]
Array is a struct, therefore it is a value type in Swift. NSArray is an immutable Objective C class, therefore it is a reference type in Swift. AnyObject is an object of any class, including Objective-C classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment