To understand what copy-on-write means we need to delve into Swift’s type classification.