Fix warnings and add Todos

This commit is contained in:
Christoph Hagen
2021-06-13 14:42:49 +02:00
parent ffbacb7645
commit 1636932805
5 changed files with 8 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ import UIKit
import CoreML
import SQLite
protocol DatabaseDelegate: class {
protocol DatabaseDelegate: AnyObject {
func database(didAddCap cap: Cap)
@@ -726,7 +726,7 @@ final class Database {
update(uploaded: true, for: cap.id)
completed += 1
let total = completed + pendingCapUploadCount
delegate?.database(completedBackgroundWorkItem: "Uploading caps", subtitle: "\(completed + 1) of \(total)")
delegate?.database(completedBackgroundWorkItem: "Uploading caps", subtitle: "\(completed) of \(total)")
}
return true
}

View File

@@ -13,7 +13,7 @@ import Vision
protocol ImageProvider: class {
protocol ImageProvider: AnyObject {
func image(for cap: Int) -> UIImage?