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

@ -17,7 +17,9 @@ import Reachability
#warning("GridController: Reorder caps by dragging")
#warning("TableView: Fix blur background of search bar after transition")
#warning("TableView: Add banner to jump down to unmatched caps / bottom")
#warning("Only show total size and percentage for classifier download")
#warning("After classifier download, test is not started")
#warning("Add result info when update button is pressed")
var shouldLaunchCamera = false
var app: AppDelegate!

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?

View File

@ -16,7 +16,7 @@ class PassthroughView: UIView {
}
}
protocol CapAccessoryDelegate: class {
protocol CapAccessoryDelegate: AnyObject {
func capSearchWasDismissed()

View File

@ -28,7 +28,7 @@ enum SortCriteria: Int {
}
}
protocol SortControllerDelegate: class {
protocol SortControllerDelegate: AnyObject {
func sortController(didSelect sortType: SortCriteria, ascending: Bool)
}