I have an array of object :
var fooArray = [Foo]()
If I want to append another array with Foo object i can use the +=
:
fooArray += anotherFooArray
This one works.
But if i'm making the Foo objects in the array optional :
var fooArray = [Foo?]()
Doing the concatenation raise an error :
[Foo?]() is not identical to 'CGFloat'
I definitely don't understand what's the problem and what CGFloat type has to do with this ?