Retain cycle with AddArtistsViewController and AddArtistsViewModel #7
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Description
Navigating out of the AddArtistsViewController doesn't deallocate the
AddArtistsViewController
and theAddArtistsViewModel
. These are signs of a retain cycle.Expected Behavior
A message in the console should print out that
AddArtistsViewController
and theAddArtistsViewModel
were deallocated.Actual Behavior
No message in the console prints out that
AddArtistsViewController
and theAddArtistsViewModel
were deallocated.Steps to Reproduce the Problem
New Releases
screen.AddArtistsCoordinator
was deallocated.Possible solution
I think it has something to do with the SearchController and the
AddArtistsViewController
's strong reference to it. Could play around with 'weak' and see what happens.Specifications
The text was updated successfully, but these errors were encountered: