Fix warnings and add Todos
This commit is contained in:
parent
ffbacb7645
commit
1636932805
@ -17,7 +17,9 @@ import Reachability
|
|||||||
#warning("GridController: Reorder caps by dragging")
|
#warning("GridController: Reorder caps by dragging")
|
||||||
#warning("TableView: Fix blur background of search bar after transition")
|
#warning("TableView: Fix blur background of search bar after transition")
|
||||||
#warning("TableView: Add banner to jump down to unmatched caps / bottom")
|
#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 shouldLaunchCamera = false
|
||||||
|
|
||||||
var app: AppDelegate!
|
var app: AppDelegate!
|
||||||
|
@ -11,7 +11,7 @@ import UIKit
|
|||||||
import CoreML
|
import CoreML
|
||||||
import SQLite
|
import SQLite
|
||||||
|
|
||||||
protocol DatabaseDelegate: class {
|
protocol DatabaseDelegate: AnyObject {
|
||||||
|
|
||||||
func database(didAddCap cap: Cap)
|
func database(didAddCap cap: Cap)
|
||||||
|
|
||||||
@ -726,7 +726,7 @@ final class Database {
|
|||||||
update(uploaded: true, for: cap.id)
|
update(uploaded: true, for: cap.id)
|
||||||
completed += 1
|
completed += 1
|
||||||
let total = completed + pendingCapUploadCount
|
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
|
return true
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ import Vision
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
protocol ImageProvider: class {
|
protocol ImageProvider: AnyObject {
|
||||||
|
|
||||||
func image(for cap: Int) -> UIImage?
|
func image(for cap: Int) -> UIImage?
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ class PassthroughView: UIView {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol CapAccessoryDelegate: class {
|
protocol CapAccessoryDelegate: AnyObject {
|
||||||
|
|
||||||
func capSearchWasDismissed()
|
func capSearchWasDismissed()
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ enum SortCriteria: Int {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol SortControllerDelegate: class {
|
protocol SortControllerDelegate: AnyObject {
|
||||||
|
|
||||||
func sortController(didSelect sortType: SortCriteria, ascending: Bool)
|
func sortController(didSelect sortType: SortCriteria, ascending: Bool)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user