Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

Simplest implementation log share button in SwiftUI?

I want to implement a log exporter to export user logs from pages like Settings or Mail. In UIKit, UIActivityViewController would work well, but I’m looking for a more modern approach using SwiftUI. I ...
Sidney Liu's user avatar
0 votes
1 answer
82 views

Why am I getting an error while sharing image with WhatsApp via UIActivityViewController?

want to share an UIImage from my app with WhatsApp via the UIActivityController. But the moment I share it, Ill get the following error message: [u 3F6F03F6-805B-4DF3-B3C5-188EA72B9C0C:m (null)] [net....
Patrick Kuro's user avatar
1 vote
0 answers
36 views

Attach image via UIActivityViewController to gmail "Unable to attach the operation couldn't be completed.(com.google.HTTPStatus error 400.)"

I'm encountering an issue when trying to share an image via UIActivityViewController to Google services like Gmail, GChat, Google Drive in my iOS app. I receive the following error: Unable to attach ...
IOS developer's user avatar
0 votes
0 answers
43 views

Best format and way to share audio or video using ActivityView Controller in Swift

I am new to audio and video assets in Swift and am trying to enable users to share audio or video using ActivityViewController. To share text and images I can do: var bestContent0 = "Check out ...
user6631314's user avatar
  • 1,910
0 votes
1 answer
86 views

Share Audio (MP3) to WhatsApp with text using UIActivityViewController

I'm trying to share an audio file (MP3) using UIActivityViewController. While the audio file is shared successfully, the accompanying text message I'm adding does not appear in the message. It only ...
Roi Mulia's user avatar
  • 5,886
2 votes
1 answer
110 views

UIActivityViewController displayed in the incorrect position on iPads when presented as a popover in SwiftUI

I currently working on an iOS app that requires me to support iOS 15+. I've developed a custom SwiftUI button view called ShareButton The goal of this button is to make the share functionality ...
Shawn Frank's user avatar
  • 5,131
0 votes
1 answer
58 views

UIactivityController not displaying printing image

In SwiftUI app I want to print the image using share sheet. In below code sheet is opening blank always showing there is no image. import SwiftUI struct ActivityViewController: ...
iosdev1111's user avatar
  • 1,092
0 votes
0 answers
66 views

Limitations on ReplayKit file sharing?

Problem I'm using ReplayKit to save a screen recording, and once it is done it outputs to an URL. When I print the URL I do get a local value, something like: file:///private/var/mobile/Containers/...
marcgg's user avatar
  • 66.4k
0 votes
0 answers
58 views

How to share metadata of an audio url file to a WhatsApp conversation with friends

I am trying to send a music file from my app to WhatsApp using Apple Share sheet which is UIActivityViewController. I am able to share the music file but the problem is I cannot add metadata to this. ...
Ghiggz Pikkoro's user avatar
2 votes
2 answers
990 views

When using the UIAactivityViewController, a message is generated from the console

First of all, please understand that I use a translator. I'm using the UIAActivityViewController to create a feature that shares images and texts. When I run the sharing function, I get a message like ...
wussup's user avatar
  • 53
0 votes
0 answers
85 views

voice over is enabled(UIaccesibility.isVoiceOverRunning) on parent A(nav controller) and On child view(UIactivityViewcontroller)voice over is disabled

I'm trying to achieving accessibility on activityviewcontroller. I'm presenting navigation controller over root view and later presenting activityviewcontroller over navigation controller.I found ...
datha's user avatar
  • 359
0 votes
0 answers
244 views

iOS Share Activity - Add Custom Actions

See the image attached. What are the APIs needed to add a share action here that shows up across the system. How did Pinterest add theirs here? And it shows up for almost everything you share. I've ...
gngrwzrd's user avatar
  • 6,002
-1 votes
1 answer
830 views

Implementing Namedrop feature in Swift [closed]

I want to share a FileURL with Namedrop in iOS 17, but the following code is not working. I have used UIActivityViewController. let activityViewController = UIActivityViewController(activityItems: [...
Monika Patel's user avatar
  • 2,375
1 vote
0 answers
44 views

How can I share a transparent PNG to iMessage from the Share Sheet?

When I try to share a transparent PNG via the Share Sheet and choose "AirDrop" or "Save Image" the saved image is transparent, however when I choose iMessage the image suddenly ...
Warpling's user avatar
  • 2,095
0 votes
1 answer
193 views

How can I get "Save Image" as an option in the Share Sheet?

I'm trying to present a share sheet with an image. I'd expect the "Save Image" option to be there but it's not. Is there some trick to getting this working?
Warpling's user avatar
  • 2,095
1 vote
0 answers
54 views

"Save Image" is not an option for the ActivityViewController. I can only "Save to File" (SwiftUI)

I am creating a meme object which consists of a UImage and two TextFields. I am recreating a Storyboard application with SwiftUI, so I have used the UIViewControllerRepresentable. Once the ...
matsonadams's user avatar
0 votes
1 answer
226 views

Name of the file does not display upon sharing

I have a SwiftUI app where I'm trying to share a PDF file using a ShareSheet. The PDF is generated and saved with a specified name, but when I try to share it using the ShareSheet, it sends with a ...
Rin Star 's user avatar
5 votes
0 answers
691 views

iOS 17 Airdropped file not opening in our app and instead opening in files app

Our application is configured to handle a custom file type with the extension .ptw. Until the release of iOS 17, when we used Airdrop to send a .ptw file, it would seamlessly open directly in our app ...
Vinoth Kumar's user avatar
0 votes
1 answer
926 views

UIActivityViewController no longer displaying application activity icons under iOS 17

I'm just now testing my app under iOS 17 (beta 7). One strange issue I'm seeing is with UIActivityViewController. My app provides several custom application UIActivity instances. Under iOS 17.0 beta 7 ...
HangarRash's user avatar
  • 14.7k
1 vote
0 answers
46 views

Icons from assets and system icons display in UIAlertController actions

I can't figure out how to display asset image as an icon for action. And how to display a system image (SF-symbol) as icon for share item. Although vice versa everything works like a charm. Here is ...
Rentel's user avatar
  • 11
1 vote
1 answer
200 views

UIActivityViewController - How can I identify selected option and link specific data type to it?

I'm struggling with a problem, which was discussed in earlier threads too (e.g. UIActivityViewController - is there a way to know which activity was selected?), but in my understanding not fully ...
carlson's user avatar
  • 105
1 vote
1 answer
27 views

UIActivityViewController strips out extra spaces I put in for formatting purposes

I am trying to share formatted text which has extra spaces using UIActivityViewController. So if I share "Estimate: $400" via email, the received email has the text: "Estimate: $...
nitin67's user avatar
  • 83
1 vote
0 answers
364 views

Swift - Share image and video with UIActivityViewController telegram, whatsapp and etc

I am trying to share a video and image from a URL using UIActivityViewController. If I try with an Image I have not problems i try to both i face issues. guard let urlData = NSData(...
Manoj Kumar's user avatar
0 votes
0 answers
49 views

Is there any way to fetch details of tapped activity type in Share sheet?

I have implemented share functionality and after completion of it I just want to navigate to next page which works fine but for one case which is message, I want to hit an api but that api requires ...
Mel's user avatar
  • 469
0 votes
0 answers
52 views

Unable to Share NSURL and NSString simultaneously to iMessage app

Is it possible to share NSURL and NString at the same time using the UIActivityViewController? I know it's possible using the MFMessageComposeViewController but wanted to use the native UI sheet so ...
Austin Taylor's user avatar
3 votes
1 answer
3k views

Sharing a file on iPad fails with "[ShareSheet] Failed to request default share mode for fileURL:..."

When I shared a file by its URL on an iPad the following error message appears in the console: [ShareSheet] Failed to request default share mode for fileURL:... An error is not reported in the ...
Annett Schwarze's user avatar
1 vote
0 answers
202 views

How does UIActivityViewController select which destination apps to offer for sharing?

I have an app that shares location information. I'd specifically like to share those locations to Garmin Drive. In the Garmin Drive plist, it lists gps files as files it accepts with a UTI com....
Rog's user avatar
  • 17.2k
0 votes
1 answer
190 views

Dismiss Activity View Controller above view

How can I dismiss an UIActivityViewController by tapping above the view. // Setting url let secondActivityItem : NSURL = NSURL(string: url)! let activityViewController : UIActivityViewController = ...
adalovelacy's user avatar
2 votes
1 answer
2k views

SwiftUI ShareLink share custom data

I am trying to share a custom struct between two users within the App via ShareLink (UIActivityViewController) in SwiftUI. I created a custom Document Type, the Exported Type Identifier and marked the ...
Nimbahus's user avatar
  • 487
0 votes
0 answers
138 views

Is it possible to set accessibility labels on system provided UIActivity items in UIActivityViewController?

When I use Accessibility Inspector to inspect the reminders and more buttons in the UIActivityViewController their labels are both simply "Activity". Is it possible to change these labels? I ...
Caleb Bolton's user avatar
0 votes
1 answer
318 views

UIActivityViewController: Close button in share sheet becomes transparent

When I use UIActivityViewController to share an image the close button becomes transparent. I can click on its frame button but it is invisible for the user. And you cannot click outside to close on ...
chac ngo dang's user avatar
0 votes
1 answer
393 views

UIActivityViewController ignoring excludedActivityTypes

I need to exclude .saveToCameraRoll from a UIActivityViewController but it is ignoring excludedActivityTypes. activityVC = UIActivityViewController(activityItems: [imgUrl], applicationActivities: ...
Jeshua Lacock's user avatar
3 votes
0 answers
510 views

How to get the title and messageBody metadata from the UIActivityViewController to a custom UIActivity?

Since iOS 13 you can create a UIActivityViewController using a UIActivityItemsConfiguration. That has a perItemMetadataProvider callback that allows you to provide a title and message body. With that ...
HangarRash's user avatar
  • 14.7k
0 votes
1 answer
495 views

How UIActivityViewController title and description works?

How the title and description parts of the header on UIActivityViewController works by default on iOS and other platforms? In cases, where there's no customization and any other works done to set them,...
Kanan Mammad-zadeh's user avatar
0 votes
1 answer
355 views

Share Array of UIImages With Text via UIActivityViewController in Swift

I am using UIActivityViewController to share text and images both in Swift using the following code: @IBAction func shareTapped(_ sender: Any) { var text = "I am enjoying swift" var ...
Taimoor Arif's user avatar
  • 1,162
0 votes
1 answer
656 views

How to download PDF using URL in iOS app multiple times

I am getting getting multiple PDF urls from server response and showing them in tableview with download option for each cell. I am able to download each pdf file only once, But, Tried to second time ...
Anilkumar iOS Developer's user avatar
0 votes
1 answer
590 views

Open in Safari with UIActivityViewController?

I'm sharing a URL via UIActivityViewController. I'd like to see "Open in Safari" or "Open in browser" appear on the share sheet, but it doesn't. Is there a way to make this happen? ...
Flarosa's user avatar
  • 1,801
1 vote
0 answers
449 views

Sharing in Facebook with iOS UIActivityViewController

I'm using iOS 12 and Facebook SDK 13.2.0 to share texts and links in Facebook using UIActivityViewController this way: var items: [Any] = [model?.shareInfo?.text ?? NSLocalizedString("...
Wonton's user avatar
  • 1,133
1 vote
0 answers
140 views

Copying/moving multi-gigabyte images with NSFileCoordinator

My app is capable of writing multi-gigabyte images. I need a way to allow the user to do something with the full-resolution images (such as AirDrop). It does not appear possible to write the image to ...
Jeshua Lacock's user avatar
1 vote
1 answer
69 views

UIActivity without reading a stored file into into memory?

My app writes huge images (billions of pixels). The image is too large to read as a UIImage or as Data. Typically, when I share images with an activity controller, I do this: var data: Data data = ... ...
Jeshua Lacock's user avatar
1 vote
0 answers
440 views

UIActivityViewController Not Sharing Both URL & Text in Messages

I have a UIActivityViewController which takes in an array of URLs that resolve to images within the app's Documents folder and Strings: var contentArray = [Any](); contentArray.append("Test Text&...
Jake Chasan's user avatar
  • 6,530
2 votes
0 answers
271 views

Gmail app converting PDF on to Email not working properly on UIActivityViewController using PDFKit

Ran into some pdfkit issues when you share a PDF with UIActivityViewController and Gmail doesnt convert the PDF file properly it works on every other platform (Mail app, Yahoo Mail, Outlook, etc) if ...
NWBDevelopment's user avatar
0 votes
0 answers
154 views

UIActivityViewController - Close Button vs Slidedown

I noticed that there is a difference in the behavior of the UIActivityViewController when : 1: press the CLOSE (X) button up there, or 2: do a SLIDE DOWN to do the dismiss. Pressing the button returns ...
neovision's user avatar
0 votes
1 answer
2k views

UIActivityViewController and presentViewController generating numerous errors

I recently came encountered an error with UIActivityViewController in developing in objective-c running under IOS 15.4.1 that used to work. In fact, I copied the below code form one app (where it ...
tokorobam's user avatar
1 vote
1 answer
2k views

Swiftui: How to snapshot a view then share?

I found this code for taking a snapshot of a view in SwiftUI, and also found this gist for how to bring up UIActivityController in SwiftUI. It works ok but the biggest issue I am having is when you ...
GarySabo's user avatar
  • 6,640
0 votes
1 answer
262 views

UIActivityViewController handle Cancel action | Swift/Xcode

I can't find complete code in Swift of how to execute an action when the user presses the "x" in a UIActivityViewController (top right), cancelling the share. This is what I currently have: ...
Christian W's user avatar
3 votes
3 answers
515 views

Mirrored actions on UIActivityViewController, swift, with persian language (iOS 15.4)

screen shot As you can see my actions are mirrored while I set my application language to persian. It just happening on iOS 15.4 older versions are works fine my main text share is in persion and it's ...
Sepehr Keyhani's user avatar
0 votes
2 answers
264 views

How to save images to Dropbox with UIActivityViewController | Swift/Xcode

I need to save photos directly from my app to 3rd Party file handlers (Dropbox, Egnyte, Google Drive). How do you upload images to Dropbox using the UIActivityViewController? "Upload to Egnyte&...
Christian W's user avatar
0 votes
0 answers
79 views

How FaceTime is able to add this button to the Share Sheet's preview header?

I'm curious how FaceTime is customizing the share sheet? Specifically, how are they modifying the preview header to include an "Add name" button. Note: Tapping the "Add name" ...
José Roberto Abreu's user avatar
0 votes
1 answer
386 views

How to UIActivityViewController excluded items dynamic based on a changing array?

I went through a tutorial for implementing the UIActivityViewController everything is working as expected. I can also use excludedItems property to remove any default options in ...
user16780334's user avatar

1
2 3 4 5
26