resolve warnings

This commit is contained in:
Satindar Dhillon
2022-06-16 22:26:39 -07:00
parent 6f86495cf4
commit 6d61c0f9e7
5 changed files with 5 additions and 9 deletions

View File

@ -168,7 +168,7 @@ struct CreateProfileView: View {
.foregroundColor(.red)
}
}
.animation(.default)
.animation(.default, value: 0.35)
VStack(alignment: .leading, spacing: 6) {
Text("Bio (optional)")

View File

@ -262,9 +262,8 @@ private extension PageScrapePayload {
print("error copying file locally", error)
}
}
// TODO:
// Don't try to handle file URLs that are not PDFs.
// In the future we can add image and other file type support here
// If file is not a pdf then return nil
return nil
}
return PageScrapePayload(url: url.absoluteString)

View File

@ -11,7 +11,7 @@ extension DataService {
quote: String,
patch: String,
articleId: String,
overlapHighlightIdList: [String] // TODO: pass in annotation?
overlapHighlightIdList: [String]
) -> [String: Any]? {
let internalHighlight = InternalHighlight(
id: highlightID,

View File

@ -117,9 +117,6 @@ public extension DataService {
Task {
try await createPageFromPdf(id: id, localPdfURL: localPdfURL, url: url)
}
} else {
// TODO: This is an invalid object, we should have a way of reflecting that with an error state
// updateLinkedItemStatus(id: id, status: .)
}
case "WEB":
let id = item.unwrappedID

View File

@ -36,7 +36,7 @@ public struct Snackbar: View {
.cornerRadius(5)
.offset(x: 0, y: -8)
.shadow(color: .gray, radius: 2)
.animation(Animation.spring())
.animation(.spring(), value: true)
}
}
}