Suddenly I\'v started getting run time error as,
fatal error: NSArray element failed to match the Swift Array Element type
I\'v declared my
Could it be a conflict between swift type and ObjectiveC's one?
Because I experienced a similar situation trying to loop on a [NSMutableDisctionary]
both with .forEach{}
and for ... in
way, but it gave me your same error (NSArray element failed to match the Swift Array Element type
). When I changed the type to [Dictionary
all worked well. Now, []
was introduced in Swift, and types with prefix NS...
in ObjectiveC.