UIViewController

Swift

extension UIViewController
  • Crawls up to the parent-most view controller and then checks the presentation type.

    Declaration

    Swift

    @objc(pspdf_isInPopoverPresentation)
    var isInPopoverPresentation: Bool { get }
  • Returns the extra inset that is needed to avoid a popover’s arrow. Only relevant when the view controller is being presented as a popover in iOS 13+.

    In iOS 12 and below, the popover’s arrow is not considered a part of the content and does not need to be accounted for.

    Declaration

    Swift

    @objc(pspdf_popoverArrowInset)
    var popoverArrowInset: UIEdgeInsets { get }