Type Aliases

The following type aliases are available globally.

  • Video fill mode options for Player.fillMode.

    • resize: Stretch to fill.
    • resizeAspectFill: Preserve aspect ratio, filling bounds.
    • resizeAspectFit: Preserve aspect ratio, fill within bounds.

    Declaration

    Swift

    public typealias PlayerFillMode = AVLayerVideoGravity