Fix warnings and add Todos
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -13,7 +13,7 @@ import Vision
|
||||
|
||||
|
||||
|
||||
protocol ImageProvider: class {
|
||||
protocol ImageProvider: AnyObject {
|
||||
|
||||
func image(for cap: Int) -> UIImage?
|
||||
|
||||
|
Reference in New Issue
Block a user