Quantcast
Channel: Combine: Asynchronous Programming with Swift - Kodeco Forums
Viewing all articles
Browse latest Browse all 26

Assign operator can cause a strong reference cycle

$
0
0

assign(to: \.word, on: self) and storing the resulting AnyCancellable results in a strong reference cycle. Replacing assign(to:on:) with assign(to: &$word) prevents this problem

not sure why

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 26

Trending Articles