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
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