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. |
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. |