mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-14 17:01:01 +00:00
Cleanup
This commit is contained in:
parent
7863c2ba08
commit
a315b09553
@ -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
|
||||
}
|
||||
|
||||
|
@ -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)")
|
||||
|
Loading…
Reference in New Issue
Block a user