Picture-In-Picture

  • The PictureInPicture object helps you configure the picture-in-picture mode

    See more

    Declaration

    Swift

    public protocol PictureInPicture
  • The corner of the PiP view

    • topLeft: The PiP view will be positioned at the top left corner of the screen
    • topRight: The PiP view will be positioned at the top right corner of the screen
    • bottomLeft: The PiP view will be positioned at the bottom left corner of the screen
    • bottomRight: The PiP view will be positioned at the bottom right corner of the screen

    Note

    The PiP corner can be observed with the Notification.Name.PictureInPictureMoved notification

    See more

    Declaration

    Swift

    public enum PictureInPictureCorner
  • The key to retrieve the new PiP view corner

    Note

    The PiP corner can be observed with the Notification.Name.PictureInPictureMoved notification

    Declaration

    Swift

    public let PictureInPictureNewCornerUserInfoKey: String
  • The key to retrieve the corner at which the PiP view previously was

    Note

    The PiP corner can be observed with the Notification.Name.PictureInPictureMoved notification

    Declaration

    Swift

    public let PictureInPictureOldCornerUserInfoKey: String