swiftui-notes icon indicating copy to clipboard operation
swiftui-notes copied to clipboard

add some detail re: referencing .assign() and possible memory leaks

Open heckj opened this issue 6 years ago • 0 comments

Seems like a point of some possible confusion, it's bit at least a few people -

using .assign() captures the reference it's handed with a strong link - not "[weak self]" kind of semantics. Detail at https://forums.swift.org/t/does-assign-to-produce-memory-leaks/29546/9

More that the expectation of how it's handled might be made more clear - it's not really a like so much as a misunderstanding that seems common

heckj avatar Dec 23 '19 15:12 heckj