I am having a hard time removing the UIActivityIndicatorView. Is there a property to remove it from ever showing? I have built my own custom UI to show loading of the pdf but want to completely hide the activity indicator view. Thanks
Hi Jack,
Thank you for getting in touch with this ticket. We will look into adding support hiding activity indicator view.
Best Regards,
Sahil Behl
Software Developer
PDFTron Systems, Inc.
Tel: 1-604-730-8989
Fax: 1-604-676-2477
Awesome thank you. Do you have a time frame of when this could be added?
For anyone that runs into this issue where they want a custom loading view instead of the default Opening PDF… activity view indicator. I got around it by adding my view as a sub view to the view of the PTDocumentController, and then bringing the subview to the front. Still work like to remove it but this works for now.
Hey Jack,
Glad you got it to work.
It should be dealt in the next sprint. So it should be available in 3 to 4 weeks.
Best Regards,
Sahil Behl
Software Developer
PDFTron Systems, Inc.
Tel: 1-604-730-8989
Fax: 1-604-676-2477
Hi Jack,
The feature has been added and is available in the latest experimental build:
https://nightly-pdftron.s3-us-west-2.amazonaws.com/experimental/2022-09-13/cocoapods/pdftron/2022-09-13_experimental_rev80440.podspec
hidesProgressSpinner controls the visibility of the activity indicator i.e progress spinner while loading the document. The default value is false.
Code to hide the activity indicator:
documentController.hidesProgressSpinner = true
Let us know if this works for you.
Best Regards,
Sahil Behl.