IVSAspectMode

Objective-C

enum IVSAspectMode : NSInteger {}

Swift

enum AspectMode : Int, @unchecked Sendable

Supported aspect modes.

  • Will simply fill the bounding area with the image, disregarding the aspect ratio.

    Declaration

    Objective-C

    IVSAspectModeNone = 0

    Swift

    case none = 0
  • Will fit the entire image within the bounding area while maintaining the correct aspect ratio. in practice this means that there will be letterboxing or pillarboxing.

    Declaration

    Objective-C

    IVSAspectModeFit

    Swift

    case fit = 1
  • Will fill the bounding area with the image while maintaining the aspect ratio. in practice this means that the image will likely be cropped.

    Declaration

    Objective-C

    IVSAspectModeFill

    Swift

    case fill = 2