This commit is contained in:
Angelo Stavrow 2022-05-31 06:51:40 -04:00
parent 7863c2ba08
commit a315b09553
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
2 changed files with 2 additions and 2 deletions

View File

@ -160,8 +160,7 @@ struct ContentView: View {
}
itemProvider.loadItem(forTypeIdentifier: typeIdentifier) { (dict, error) in
if let error = error {
print("⚠️", error)
if error != nil {
self.isShowingAlert = true
}

View File

@ -17,6 +17,7 @@ final class WriteFreelyModel: ObservableObject {
@Published var hasError: Bool = false
var currentError: Error? {
didSet {
// TODO: Remove print statements for debugging before closing #204.
#if DEBUG
print("⚠️ currentError -> didSet \(currentError?.localizedDescription ?? "nil")")
print(" > hasError was: \(self.hasError)")