Questions tagged [uidocumentinteractioncontroller]

44 questions
0
votes
0 answers

How to Present a UIDocumentInteractionController from a SwiftUI View

I have the following code that takes a screen shot of a SwiftUI View and I would like to present this screen shot in a UIDocumentInteractionController. I have done this in a UIKit ViewController and I would like to know if there is a way to convert…
Dogahe
  • 1,380
  • 2
  • 20
  • 50
0
votes
1 answer

Programmatically scroll pdf in UIDocumentInteractionController

I'm showing a pdf file inside a UIDocumentInteractionController, like this: let docController = UIDocumentInteractionController(url: documentsURL) let url = NSURL(string:"itms-books:"); if UIApplication.shared.canOpenURL(url! as URL) { …
0
votes
1 answer

How to Save video file to iOS Files App using UIDocumentInteractionController

I want to write one or multiple mov/mp4 files to iOS Files App but can not find how to do it with UIDocumentInteractionController. Looking for a sample code to copy files to a subfolder of my app in iOS files app using…
0
votes
0 answers

Is it possible to handle a file to another App without displaying the Share Screen in IOS?

I've never written any code with Objective-C and I'm as lost as you can be. My App is in React Native but I couldn't find a way to achieve this so I had to start to search for a solution using Native Code. What I basically need to do is taking a…
0
votes
1 answer

UIDocumentInteractionController change file name for Sharing

iam using the following code to show the sharing options for PDF self.documentController = UIDocumentInteractionController(url: url) self.documentController.name = "Test name" // not working …
Hazem Badr
  • 41
  • 4
0
votes
0 answers

How to change UIDocumentInteractionController text color?

My app has an option for a dark theme, and when that is the case, I do something like this: UILabel.appearance().textColor = .white The problem is, the app provides the ability to export some text via UIDocumentInteractionController. When I do…
tariq
  • 501
  • 2
  • 4
  • 11
0
votes
1 answer

Support landscape and portrait orientation for UIDocumentInteractionController

The orientation of my IOS app has been locked to Portrait mode. However, I want to support both landscape and portrait orientation for files that open using UIDocumentInteractionController. Here is my code to open a file url. let url =…
Karu
  • 935
  • 2
  • 13
  • 32
0
votes
1 answer

File shared via AirDrop is incomplete

I am working on an application one of the features of which is downloading and displaying PDF files. I had no problems implementing these features. Then I wanted to enable sharing of the files but ran into a strange problem. Here's how my sharing…
0
votes
1 answer

Present preview from UIDocumentInteractionControlller as ChildViewController of a UIViewController

I have implemented UIDocumentInteractionController for previewing unsupported filetypes. But since UIDocumentInteractionController is subclass of NSObject and not UIViewController, I am not able to add it as childviewcontroller of present onscreen…
tech savvy
  • 1,417
  • 4
  • 21
  • 42
0
votes
1 answer

Can we share PDF with drawings in other applications using PDFKit in Swift?

I am using PDFKit to edit, draw and then share PDFs in other applications like mail, WhatsApp, etc.. Able to share the file after editing but when I try to share the PDF after drawing something, I am unable to share it. Those drawings are not there…
Catherine
  • 654
  • 5
  • 15
0
votes
1 answer

XCODE / IOS - Share via UIDocumentInteractionController

I havn't succeeded to share anything via the "UIDocumentInteractionController", as I went through almost all the tutorials and help online I wish to find a solution: This is the code i use: let fileName = "banner_1" let filePath =…
0
votes
1 answer

UIDocumentInteractionController with translucent NavigationBar

Ahh, I'm driving crazy ... I'm trying since hours to get the NavigationBar of my UIDocumentInteractionController to be NOT translucent, but nothing works .. It is presented as Preview _docController = [UIDocumentInteractionController…
0
votes
0 answers

iOS 11 Document Based App template - remove sidebar browser.

Is it possible to eliminate the sidebar browser (location/favorites/tags) in a document based app? The goal is that users can only access files created on my app [![][1]][1]
Mane Manero
  • 3,086
  • 5
  • 25
  • 47
-2
votes
1 answer

How to share an image with caption on Instagram and slack using IOS swift?

I am working on an app and I want to share an HTML link on Instagram and Slack. Is it possible to share a link on Instagram and slack?. Please give me some resource so that I can get my solution.
1 2
3