You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: