Merge pull request #756 from omnivore-app/fix/ios-light-theme-shareview
This commit is contained in:
@ -19,7 +19,7 @@ public extension DataService {
|
||||
let input = InputObjects.UploadFileRequestInput(
|
||||
clientRequestId: OptionalArgument(id),
|
||||
contentType: "application/pdf",
|
||||
createPageEntry: OptionalArgument(true),
|
||||
createPageEntry: OptionalArgument(false),
|
||||
url: url
|
||||
)
|
||||
|
||||
@ -85,7 +85,6 @@ public extension DataService {
|
||||
|
||||
return try await withCheckedThrowingContinuation { continuation in
|
||||
let task = networker.urlSession.uploadTask(with: request, fromFile: localPdfURL) { _, response, _ in
|
||||
print("UPLOAD RESPONSE", response)
|
||||
if let httpResponse = response as? HTTPURLResponse, 200 ... 299 ~= httpResponse.statusCode {
|
||||
continuation.resume()
|
||||
} else {
|
||||
@ -107,7 +106,6 @@ public extension DataService {
|
||||
return task
|
||||
} else {
|
||||
// TODO: How should we handle this scenario?
|
||||
print("NOT UPLOADING PDF DOCUMENT YET")
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
@ -256,7 +256,7 @@ public struct ShareExtensionChildView: View {
|
||||
.padding(EdgeInsets(top: 0, leading: 0, bottom: 8, trailing: 8))
|
||||
}
|
||||
}
|
||||
.background(Color(hex: "#363636"))
|
||||
.background(Color.appButtonBackground)
|
||||
.frame(maxWidth: .infinity, maxHeight: 61)
|
||||
.cornerRadius(8)
|
||||
}
|
||||
@ -268,14 +268,14 @@ public struct ShareExtensionChildView: View {
|
||||
.font(Font.system(size: 17, weight: .semibold))
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
.padding(.top, 23)
|
||||
.padding(.bottom, 16)
|
||||
.padding(.bottom, 12)
|
||||
|
||||
Rectangle()
|
||||
.foregroundColor(.appGrayText)
|
||||
.frame(maxWidth: .infinity, maxHeight: 1)
|
||||
.opacity(0.06)
|
||||
.padding(.top, 0)
|
||||
.padding(.bottom, 16)
|
||||
.padding(.bottom, 18)
|
||||
|
||||
previewCard
|
||||
.padding(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))
|
||||
|
||||
Reference in New Issue
Block a user