Post

Replies

Boosts

Views

Activity

Please tell me how to remove highlight from editmenu items of PDFView
I use PDFView to show PDF files. A PDFView has several editmenu items in advance. Among them, I want to remove the highlight from the item. So, I made PDFView subclass and overrode canPerformAction and buildMenu respectively, but I could not remove the highlight item from the editmenu. If you know how to remove the highlight item, please let me know. Thanks for reading my post.
4
1
840
Aug ’23
How to get full raw data of barcode using AVFoundation framework
I am creating a barcode reader using the AVfoundation framework for iOS and IPadOS. The read result goes into payloadstringvalue, but I want to check the control characters contained in the symbol, so I am using the raw data of the description, which is a property of NSObjectProtocol inherited by VNBarcodeObservation. However, I noticed that if the length set in the raw data exceeds 26, some of the raw data in the description is omitted. So my question is, is it possible to set it so that all the raw data in the description is written out without omitting any raw data? If so, could you please tell me how to set this up? Also, if you know of any other way to extract the raw barcode data, I would appreciate it if you could let me know. Thank you.
0
0
490
Aug ’23
How to modify default context menu of PDFKit with SwiftUI
I am creating an app for iOS and iPadOS using PDFKit based on SwiftUI and have a problem that I cannot solve. In the current app, when viewing a PDF, I select a sentence by dragging it, press and hold, and a context menu with several processing commands is displayed. This context menu is not prepared by me, but it is the default context menu that comes with PDFKit. Some of them are not suitable for my application and I want to hide them. I have searched a lot about the settings and it seems to use UIContextMenuInteraction, UIEditMenuInteraction and their delegate, canperformaction and so on. However, there is no official information on how to use them in swiftui, and when I try to implement them myself, they don't work as expected. If anyone knows how to modify the context menu provided by default when using PDFKit with SwiftUI, please let me know.
0
0
713
Jun ’23