CameraEngine
CameraEngine copied to clipboard
NSArrayM was mutated while being enumerated.
Can't seem to find a fix for this one. Anyone? See pic.
Anyone??
NSArrayM was mutated while being enumerated.
This error simply means dont make changes to an array as youre looping though it.
In a nutshell, change this
for item in items {
if item = "temp" {
items.remove(item)
}
}
into this
let itemsCopy = items
for item in itemsCopy {
if item = "temp" {
items.remove(item)
}
}
see here for more info