I'm trying to implement NSValueTransformer
class named ArrayValueTransformer
which is meant to transform an Array which can contain any type of object in it as follows:
class ArrayValueTransformer : NSValueTransformer {
override class func transformedValueClass() -> AnyClass {
return Array<AnyObject>.self
}
}
But the return statement gives this error:
Type 'Array<AnyObject>' does not conform to protocol 'AnyObject'