iOS: changing toolGroupToolbar position

Product:
PDFTron - iOS Library (SPM)

Product Version:
11.5.85515

Please give a brief summary of your issue:
Request to change the position of the toolGroupToolbar to the right side of the screen

Please describe your issue and provide steps to reproduce it:
Hello,

We would like to move the toolGroupToolbar to the right side of the screen in our iOS application (written in Swift).

I am aware that this configuration is supported on Android, but I would like to ask whether it is possible to achieve the same behavior on iOS.

Android (the bar is on the right side):

iOS:

Additionally, is it possible to add PTFreeTextCreate.self (originally part of groupManager.annotateItemGroup) to the groupManager.drawItemGroup?

Thank you in advance for your help.

Kind regards,
Rafał

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


To move the toolGroupToolbar to the right side of the screen on iOS, you will need to manually adjust the layout of the toolbar within your view. The iOS SDK does not provide a built-in method for changing the toolbar position directly through an API call like in Android, but you can achieve this by modifying the view hierarchy.

Some things you can try:

  • Access the toolGroupToolbar view from your PTDocumentViewController and modify its frame or constraints to position it on the right side.

  • Use Auto Layout constraints to anchor the toolbar to the right side of the screen.

  • For adding PTFreeTextCreate.self to groupManager.drawItemGroup, modify the groupManager configuration by adding the PTFreeTextCreate tool to the desired group.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

Thank you for reaching out through our forums for Support. This would be considered a feature request. If you’d like to formally submit a feature request, you can do so through a support ticket here: Submit a ticket : Apryse
I look forward to your response.

1 Like