Adjusting the Size of Popovers

Due to the limitation of UIKit, the size of popovers can’t be changed once they’re presented. UIPopoverPresentationController offers no public API for changing the size, and attempting to circumvent this limitation is discouraged by Apple because it usually breaks the popover presentation completely.

Instead, PSPDFKit tries to determine the initial size of popovers — such as AnnotationStyleViewController and NoteAnnotationViewController — as best as it can so that their size is most optimal at all times, even when their content changes.

There are many other ways you can customize the user interface (UI) in PSPDFKit. For more information, refer to our UI customization guides, including appearance styling and customizing the annotation toolbar.