From a315b0955351e326d1244205e6d879750c1c7543 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Tue, 31 May 2022 06:51:40 -0400 Subject: [PATCH] Cleanup --- ActionExtension-iOS/ContentView.swift | 3 +-- Shared/Models/WriteFreelyModel.swift | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ActionExtension-iOS/ContentView.swift b/ActionExtension-iOS/ContentView.swift index 0d38361..3e7b0d6 100644 --- a/ActionExtension-iOS/ContentView.swift +++ b/ActionExtension-iOS/ContentView.swift @@ -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 } diff --git a/Shared/Models/WriteFreelyModel.swift b/Shared/Models/WriteFreelyModel.swift index 617385f..ba778d0 100644 --- a/Shared/Models/WriteFreelyModel.swift +++ b/Shared/Models/WriteFreelyModel.swift @@ -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)")