---
title: "Discussion on \"Swift: Copy on Write Automatic vs Manual\" | Hashnode"
description: "Discussion on \"Swift: Copy on Write Automatic vs Manual\". For a long time I thought CoW happens automatically in Swift and I found that this is not entirely correctAutomatically CoW:so for array, dictionary, set, string and data it happens automatically\n// a"
url: "https://hashnode.com/posts/swift-copy-on-write-automatic-vs-manual/69ac3a5486766ac3a6cb26dd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Swift: Copy on Write Automatic vs Manual](https://hudaios.hashnode.dev/swift-copy-on-write-automatic-vs-manual?utm_source=hashnode&utm_medium=feed)

For a long time I thought CoW happens automatically in Swift and I found that this is not entirely correctAutomatically CoW:so for array, dictionary, set, string and data it happens automatically // a

Mar 7 · 3 min read · hudaios.hashnode.dev  
Read the article

-   [#ios](https://hashnode.com/tag/ios)
-   [#swift](https://hashnode.com/tag/swift)
-   [#swift-programming](https://hashnode.com/tag/swift-programming)
-   [#copy-on-write](https://hashnode.com/tag/copy-on-write)

## Written by

[huda elhady](https://hashnode.com/@huda_elhady)

@huda\_elhady

  
[View profile](https://hashnode.com/@huda_elhady)

iOS Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
