PTHalfModalPresentationManager

@interface PTHalfModalPresentationManager
    : NSObject <UIViewControllerTransitioningDelegate,
                UIPopoverPresentationControllerDelegate>

This class handles the creation of a UIPresentationController that displays its contents covering a portion of the screen, anchored to the bottom of the screen.

  • The source rect used when a popover presentation is required.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGRect popoverSourceRect;

    Swift

    var popoverSourceRect: CGRect { get set }
  • The source view used when a popover presentation is required.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UIView *popoverSourceView;

    Swift

    var popoverSourceView: UIView? { get set }