mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +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
|
itemProvider.loadItem(forTypeIdentifier: typeIdentifier) { (dict, error) in
|
||||||
if let error = error {
|
if error != nil {
|
||||||
print("⚠️", error)
|
|
||||||
self.isShowingAlert = true
|
self.isShowingAlert = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ final class WriteFreelyModel: ObservableObject {
|
|||||||
@Published var hasError: Bool = false
|
@Published var hasError: Bool = false
|
||||||
var currentError: Error? {
|
var currentError: Error? {
|
||||||
didSet {
|
didSet {
|
||||||
|
// TODO: Remove print statements for debugging before closing #204.
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
print("⚠️ currentError -> didSet \(currentError?.localizedDescription ?? "nil")")
|
print("⚠️ currentError -> didSet \(currentError?.localizedDescription ?? "nil")")
|
||||||
print(" > hasError was: \(self.hasError)")
|
print(" > hasError was: \(self.hasError)")
|
||||||
|
Loading…
Reference in New Issue
Block a user