delete debug message
This commit is contained in:
parent
e2036f202f
commit
9a871ef852
1 changed files with 0 additions and 2 deletions
|
|
@ -104,14 +104,12 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
||||||
|
|
||||||
func updatePasswordImage(url: String) {
|
func updatePasswordImage(url: String) {
|
||||||
do {
|
do {
|
||||||
print("downloading: \(url)")
|
|
||||||
try FavIcon.downloadPreferred(url) { [weak self] result in
|
try FavIcon.downloadPreferred(url) { [weak self] result in
|
||||||
switch result {
|
switch result {
|
||||||
case .success(let image):
|
case .success(let image):
|
||||||
let indexPath = IndexPath(row: 0, section: 0)
|
let indexPath = IndexPath(row: 0, section: 0)
|
||||||
self?.passwordImage = image
|
self?.passwordImage = image
|
||||||
self?.tableView.reloadRows(at: [indexPath], with: UITableViewRowAnimation.automatic)
|
self?.tableView.reloadRows(at: [indexPath], with: UITableViewRowAnimation.automatic)
|
||||||
print("success")
|
|
||||||
let imageData = UIImageJPEGRepresentation(image, 1)
|
let imageData = UIImageJPEGRepresentation(image, 1)
|
||||||
self?.passwordEntity?.setValue(imageData, forKey: "image")
|
self?.passwordEntity?.setValue(imageData, forKey: "image")
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue