Posts

Post marked as solved
2 Replies
0 Views
So I managed to get it working by extending PDFDocument. This is not a super clean solution, so please feel free to improve it further in the comments! extension PDFDocument: Transferable {     public static var transferRepresentation: some TransferRepresentation {         DataRepresentation(contentType: .pdf) { pdf in                 if let data = pdf.dataRepresentation() {                     return data                 } else {                     return Data()                 }             } importing: { data in                 if let pdf = PDFDocument(data: data) {                     return pdf                 } else {                     return PDFDocument()                 }             }         DataRepresentation(exportedContentType: .pdf) { pdf in             if let data = pdf.dataRepresentation() {                 return data             } else {                 return Data()             }         }      } } And then you can share the PDF document like this: if let document = document { ShareLink(item: document, preview: SharePreview("PDF")) }
Post marked as solved
1 Replies
0 Views
Issue appears to be resolved. However, there is a new problem - the newly entered zero value is not being saved.
Post not yet marked as solved
17 Replies
0 Views
Same issue. Contacted Apple Support about this.