Questions tagged [sharelink]

9 questions
2
votes
1 answer

How to use ShareLink with an item from an async function?

I want to use ShareLink to share a URL that is generated from an API call from an async function. I tried something like this, and it doesn't work: ShareLink (item: Task {await getSharingURL()} ) { Image(systemName: "square.and.arrow.up") } In…
Ori C.
  • 61
  • 7
2
votes
1 answer

SwiftUI: Missing actions from share sheet when using ShareLink with SharePreview

I am currently having issues with the implementation of a SwiftUI share sheet for an iOS16 application that I want to develop. I Implemented the share sheet using ShareLink that I want to customize with a SharePreview. The item I want to share is a…
Malburrito
  • 860
  • 7
  • 23
1
vote
0 answers

How to share a Calendar Event via a ShareLink

I am trying to create a TransferRepresentation with UTType.calendarEvent to make a struct Transferable and usable in a ShareLink ShareLink(item: event, preview: SharePreview(event.name)) I tried: Creating a VCalendar-String and converting it to…
AlexR28
  • 11
  • 2
1
vote
0 answers

Return to the previously opened application in PWA

I am working on developing a Progressive Web Application (PWA) that has a feature allowing it to receive URLs shared from other applications (using share-target api). Currently, when a user shares a URL with my PWA from another app, it automatically…
0
votes
0 answers

How to make a ShareLink send an uneditable message - SwiftUI

I have a ShareLink that I want users to be able to share uneditable messages to others. This is in case the ShareLink is sending important data that could be misleading if it were to be edited by the sender (settings, high scores, etc.). Obviously…
0
votes
0 answers

Using ShareLink in SwiftUI to create item text with URL link formatted for both the Message app and email

My need is to use ShareLink to allow the user to send formatted email or text message including a URL link. My SwiftUI code looks like: ShareLink( item: itemText, subject: Text("Message from app user"), preview:…
Chris Prince
  • 7,288
  • 2
  • 48
  • 66
0
votes
1 answer

SwiftUI Can't Print Rendered Image to Printer from ShareLink (iOS 16+)

I'm trying to add the ability for a user to print a graph to a networked printer. I use ImageRenderer to create an Image. The ShareLink does raise a share sheet which includes a preview of the image but tapping on the print button does nothing. No…
JohnSF
  • 3,736
  • 3
  • 36
  • 72
0
votes
0 answers

How can i share a file with a password in spfx using @pnp/sp/sharing

I am using @pnp/sp 3.7.0 version I had a function that is not working. I've tried the below function but never got it working. public async shareLinkWithPassword(fileUrl: string, password: string): Promise { const file = await…
RickyP
  • 1
0
votes
0 answers

How do I handle a SwiftUI ShareLink with an optional url?

I am trying to allow a user to send a pdf file using the SwiftUI ShareLink. However occasionally the pdf will not be available so the function that returns the pdf will be returning an optional URL. In this case when the user presses the share…
alionthego
  • 8,508
  • 9
  • 52
  • 125