Swift Copy-on-Write: How value types replace the Prototype pattern (Summary)
Swift Copy-on-Write shares storage when value types are assigned and performs an actual copy only when one side is modified. This explains how the optimization preserves value semantics while reducing the role of the Prototype pattern.
Read article