Posts

Post marked as unsolved
64 Views

After adding sandbox entitlement to exec file, can't run exec through app

Before adding the sandbox entitlement to the exec file, the app ran perfectly. After adding the entitlement properties below, I get an error: my.sh: line 2: 41382 Killed: 9 $1 $2 "$3" $4 "$5" Entitlement properties added: keycom.apple.security.app-sandbox/key true/ keycom.apple.security.inherit/key true/ I'm signing with my Apple Development identity. I tried also by signing with my 3rd Party Mac Developer Application.  Lastly, I am running this exec through a plugin, I don't know if that could be the cause of the error. Please help.
Asked
by saeidg.
Last updated .
Post marked as unsolved
308 Views

Xcode preview docx file with WKWebview

Running on macOS Big Sur (11.0.1), the code below perfectly loads and displays images, pdfs, html in a WKWebview but not docx or other files. I would like to preview files selected in my Mac app. I get this error: WebPageProxy::didFailProvisionalLoadForFrame: frameID = 3, domain = WebKitErrorDomain, code = 102 Please can someone help? Thank you. import Cocoa import WebKit class ViewController: NSViewController {@IBOutlet weak var webView: WKWebView! let url = "https://filesamples.com/samples/document/docx/sample3.docx"override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. let request = URLRequest(url: URL(string: url)!) webView.load(request) } }
Asked
by saeidg.
Last updated .
Post marked as solved
109 Views

How to remove green check box on answer?

I was going to click the down arrow and went too quickly and clicked the green checkbox to an answer, now I can't remove the wrong answer. How do I remove the green checkbox?
Asked
by saeidg.
Last updated .
Post marked as unsolved
231 Views

PDFKit scrolling bug? Can't scroll

Hi, if I create a very simple app that just loads a 2 page PDF with PDFKit, where the size of the view is the entire screen, I'm not able to scroll the PDF up and down. This is an issue because I have a title bar and navigation buttons at the bottom and I need to scroll the PDF up so I can see the bottom of the PDF page. Details: PDF scrolling bug. I created PDFView on whole screen and set pdfview’s content inset as (100,0,100,0). So when app is launched, PDFView should be scrollable to show top and bottom area of PDF because I set content inset. But it isn’t scrollable at this scale. If you zoom in a little, then PDFView become scrollable. Here's the exact code I added to the ViewController on a new project. Is this a bug in PDFKit or is there a way to add padding on the top and bottom?         pdfview.pageBreakMargins = .zero         pdfview.pageShadowsEnabled = false         pdfview.document = pdfdoc         pdfview.autoScales = false         pdfview.scaleFactor = (UIScreen.main.bounds.height - 100) / (792 * 2)         (pdfview.subviews[0] as? UIScrollView)?.contentInsetAdjustmentBehavior = .never         (pdfview.subviews[0] as? UIScrollView)?.contentInset.top = 100         (pdfview.subviews[0] as? UIScrollView)?.contentInset.bottom = 100         (pdfview.subviews[0] as? UIScrollView)?.verticalScrollIndicatorInsets.top = 100         (pdfview.subviews[0] as? UIScrollView)?.verticalScrollIndicatorInsets.bottom = 100     }
Asked
by saeidg.
Last updated .
Post marked as solved
270 Views

Can I scribble & draw at the same time?

Right now after scribble is complete, the drawing disappears. Am I able to keep the drawing if I add a UIScribbleInteraction to PencilKit for example? That way I can get the handwriting translation and keep the pencilkit drawing.
Asked
by saeidg.
Last updated .
Post marked as solved
360 Views

iOS 14 pencilkit How to get handwriting to text?

PencilKit in iOS 14 says users will be able to select handwritten text and copy and paste as typed text. Currently I can copy the handwritten text but there is only 'copy' and if I copy, there's no option to paste as text anywhere or any other app. it just tries to paste a picture of my handwriting. When I run sample codes I don't see the ability to paste as text. How do I do this?
Asked
by saeidg.
Last updated .