Daily iOS
Memory and ARC

Shallow vs deep copy

In struct Order { var items: [Item]; let customer: Customer }, Item is a struct and Customer is a class. After var copy = order, what happens to the original if you change copy.customer.name?

Submit