Move a Text box in a PDF viewer using PDFKIT - Swift - ios

I am working on this project https://github.com/kishikawakatsumi/BookReader to expand it. It is a PDF viewer implemented by PDFKIT and everything works fine there. but I have a problem in moving an element on the PDF file. I am very new to swift so I really appreciate if some one could help me any how .
I created a text box like the image below in my story board.
and in the result when I run the app is like this
you see it works fine in PDFViewr too. now my problem is that I want to find a way to move this yellow text box during the page by touching it (and also change the height and width of it ). once before , I have found a way using GestureRecognizer but it does not work more after iOS 13. I searched a lot but I all my efforts failed because non of the solutions worked for my project. I really appreciate if help me and even if payment needed, Its very important for me
Thank you very very much

Related

Problems with text selection in WkWebView from ios 15

I am experiencing a bug that started happening from iOS 15 when trying to select text in WkWebView. It works perfectly fine in iOS 14 and previous versions. When i tap the screen to select text in the WKWebView the selection box is misplaced. It goes above in the beginning of the document and you can't really tell what are you selecting and you cant select the text you want. In the project javascripts are used to evaluate text and me being a javascript noob can't tell if some of those scripts are the problem or it's something else. Have anyone experienced something like this or could have an idea what could be the problem? I've been stuck here for a while so i would try anything. I have also created a simple test project in which i load any page in WKWebView and i don't have that problem. Any idea is welcomed. Thank you!
I have tried everything i could find with no success.
It looks like you are using deprecated code like: UIMenuController or : UIMenuItem.
Try using the new ways Xcode is recommending.

Xamarin Forms NavigationPage small part of previous page visible when navigating on iOS

I'm facing a very awkward trouble with my XF NavigationPage on iOS, and can't find anything about it on google. When I navigate from one page to another using Navigation.PushAsync there is 1pt line of previous page on the left of the screen visible untill replace that loading page's content from codebehind, you can see it here: screenshot (I actually have an image im my XAML and it's replaced with content that is loaded from server). If I disable animations with false param on PushAsync this dosen't happen.
Is there any way to preserve animations and get rid of this? Any suggestions appreciated, thank's in advance.
Update to the Latest version of Xamarin Forms, as I remember facing this bug on some previous version of XF probably 3.5 something but when i updated to the latest it started working
Good luck
Revert in case of queries

iOS Resizable GUIs with JUCE

I'm using the JUCE framework to make my first few iOS apps, mostly just proofs of concepts for my Github account for job recruiters.
I've got my first app compiled and working on iOS, but I'm having tons of issues with the GUI.
I can't seem to find the right resolutions to fill the screen. I'm testing with an iPhone 7 Plus, and I figured I could just type in the resolution of that screen to the Projucer, but it doesn't work correctly.
Then I realize I'd probably just want one that fills the screen automatically, but dont know which function calls to use or where its located in the Projucer (haven't found it yet).
Also, I'm entirely new to GUI developing as of December, so I'm still learning all of this. I would greatly appreciate keeping it simple. Thank you to anyone who is able to help.
Try this in MainComponent.cpp
Rectangle<int> area = Desktop::getInstance().getDisplays().getMainDisplay().totalArea;
centreWithSize (area.getWidth(), area.getHeight());

iOS custom gallery

Sorry, I've asked a similar question but I'm already suffering 3 days dealing with a simple photo gallery in my app. I just need a gallery with array of 1024x768 images, a gallery that will fit pictures properly into the screen.
I've tried
ATPagingView - worked fine but an 1024x768 image couldn't be resized properly for both orientations.
MWPhotobrowser - didn't managed to connect because i'm using ARC, even if I disabled arc for added files, there was a compile error I coudn't get rid of.
Custom UIScrollView with pages, with a scrollView for each page and imageview inside it, but it didn't help.
Please, help me somehow, did somebody make galleries like that?
Give Nimbus a try. It is an open source framework that is run by jverkoey, ex Three20 guy. It is not ARC'd yet, but you can turn ARC off for compilation and that works just fine, plus they are moving to ARC soon, already have a git branch of it. It has a photoviewer class but I've not used it yet, but I will need to, that's only one of the reasons I'm using it. Pretty happy with it so far!
I already found KTPhotoBrowser classes. They are nice and well-documented. I implemented the very simple photo browsing gallery very fast. Images are now resized properly, everything is okay. if you want a gallery, try this, for sure!

iOS iTunes Album Cover type (or similar) Image Display

Is there any tutorials that show how to make a Image display similar to the Album Art diaply in iTunes? Or anything similar. I followed code posted here, but I just cannot seem to get it working in the new XCode. Opening his project works fine, but using it in my own, the UIImageView renders the images beyond it's borders, making them appear over each other.
Any help would be appreciated.
I assume you're talking about CoverFlow?
I wrote a free, very easy to use CoverFlow library. It's modelled on the way that UITableView works, so if you can use that, you can use this. You can get it from here:
https://github.com/nicklockwood/iCarousel

Resources