There I want to change tint color of image but couldn't change, it's always returning white color. I have try Rendring image of Original and Template image but still it won't work.
I have added screen shot below:
please anyone can help me for that
public func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {
guard let cell = tableView.cellForRow(at: indexPath) as? DocumentListCell else {return UISwipeActionsConfiguration()}
let likeAction = UIContextualAction(style: .normal, title: "", handler: { (ac:UIContextualAction, view:UIView, success:(Bool) -> Void) in
print("likeAction ...")
success(true)
})
likeAction.image = #imageLiteral(resourceName: "Favourite_Selected")
likeAction.backgroundColor = UIColor.init(red: 239/255, green: 239/255, blue: 239/255, alpha: 1)
let downloadAction = UIContextualAction(style: .normal, title: "", handler: { (ac:UIContextualAction, view:UIView, success:(Bool) -> Void) in
print("Trash action ...")
})
downloadAction.backgroundColor = UIColor.red//UIColor.init(red: 239/255, green: 239/255, blue: 239/255, alpha: 1)
downloadAction.image = #imageLiteral(resourceName: "Doc_Download_Big")
return UISwipeActionsConfiguration(actions: [likeAction,downloadAction])
}