Daily iOS
Memory and ARCXiaomi

Deep copy, shallow copy, and COW

In Swift you assign a large array to another variable with var b = a and then modify only b. Is what happens a shallow copy or a deep copy? Explain it together with Copy-on-Write.

Submit