I have a class with a parameter in the form
class class_name: Codable {
var array_name = []
}
Running the code, I see I can add numbers in the array. But when I get the array in another function it says it is empty. I do it with:
let new_class = class_name()
Can it happen that the value gets reseted for calling the class again?