Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manager is not set replacing equatable items #27

Closed
gspadaro opened this issue Jul 12, 2017 · 1 comment
Closed

Manager is not set replacing equatable items #27

gspadaro opened this issue Jul 12, 2017 · 1 comment
Labels

Comments

@gspadaro
Copy link

This is the scenario: you have two instances of the same type of item which is (in this case) conform to the Equatable protocol and you want to replace using the method items.replace(with:.
Pay attention because the manager of the new Item is properly set but you lose the reference of the old one. If you have some kind of logic in order to use the manager of the old one you will have item?.manager = nil.

@adellibovi
Copy link
Member

This has been fixed, let me know if you are experience this bug again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants