I am new in Swift. I have a base class:
class foo{}
I want to implement a foo collection class:
class foos: Array{}
In Swift, Array is a struct, not a class. To have a class that is an array subclass, you will need to use NSArray, its Objective-C counterpart.
For example,
class Foo: NSArray{}