Open RoyDeng opened 3 years ago
Hello @RoyDeng The Project you mentioned is a fork of this project https://github.com/jdisho/Papr However, since the application uses Unsplash's API, you might have to make an API call to update the like count, that's if you don't want to reload the entire home page. You could also update the like count manually using a delegate method to notify the previous page when the detail page is dismissed, you can keep a reference to the cell (or its IndexPath) that holds the photo you just updated. I hope this helps.
Hi @tobitech, I use my own API, and I use PublishSubject to update likedByUser, when I scroll to the next page, the state of previous pages is reset. In addition, How could I send a reference to the cell from another view model? Thank you.
Hello, I refer to your code to build a similar application. However, I have encountered some problems.
Thank you.
Papr-papr-moya-version