MediumConceptSwift language and concurrency
What does copy-on-write mean for Swift collections?
What a good answer covers
Arrays and dictionaries share storage after a copy and only duplicate it when one copy is mutated, so copies are cheap until written to.
PreviousA Flow collected in a fragment keeps collecting in the background. How do you fix it?Next What are property wrappers in Swift?