Sep 2, 2021
That… depends. Any struct containing value types is automatically COW compatible. If, however, your struct contains references to your own class-based objects, then yes, you’ll need to implement COW behavior for those types.
That… depends. Any struct containing value types is automatically COW compatible. If, however, your struct contains references to your own class-based objects, then yes, you’ll need to implement COW behavior for those types.
I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.