mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont show the cloud icon while page scraping is running
This commit is contained in:
parent
f748b10037
commit
7fe3fc75c0
1 changed files with 5 additions and 7 deletions
|
|
@ -178,8 +178,10 @@ public struct ShareExtensionChildView: View {
|
|||
|
||||
private var cloudIconColor: Color {
|
||||
switch viewModel.status {
|
||||
case .saved, .processing:
|
||||
case .saved:
|
||||
return .appGrayText
|
||||
case .processing:
|
||||
return .clear
|
||||
case .failed(error: _), .syncFailed(error: _):
|
||||
return .red
|
||||
case .synced:
|
||||
|
|
@ -188,12 +190,8 @@ public struct ShareExtensionChildView: View {
|
|||
}
|
||||
|
||||
private func localImage(from: URL) -> Image? {
|
||||
do {
|
||||
if let data = try? Data(contentsOf: from), let img = UIImage(data: data) {
|
||||
return Image(uiImage: img)
|
||||
}
|
||||
} catch {
|
||||
return nil
|
||||
if let data = try? Data(contentsOf: from), let img = UIImage(data: data) {
|
||||
return Image(uiImage: img)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue