VP
Size: a a a
VP
A
cell.addToFavorites.addTarget(self, action: #selector#selector(MoviesViewController.markFavorite), for: .touchUpInside) func markFavorite() {
isFavorite = !isFavorite
let imgName = isFavorite ? "heart" : "heart.fill"
let favoriteButtonImage = UIImage(systemName: imgName)
cell.addToFavorites.setImage(favoriteButtonImage, for: .normal)
}DH

s.frameworks = "Foundation", "UIKit"AT