TKMediumContentMode

enum TKMediumContentMode {}

Enum identifying content mode of the requested TKMedium.

  • Crop the image. 200x200 will be returned with the exact size, filling the given dimensions so the longer image dimension will be cropped.

    - - note: Works as `UIViewContentModeScaleAspectFill` with bounds clipping.
    

    Declaration

    Objective-C

    TKMediumContentModeCrop = 0

    Swift

    case crop = 0
  • Don’t crop the image and fit inside the given dimensions.

    For 400x400, the longer image dimension will be 400px, the other might be shorter.

    - - note: Works as `UIViewContentModeScaleAspectFit` without clipping.
    

    Declaration

    Objective-C

    TKMediumContentModeNoCropFit = 1

    Swift

    case noCropFit = 1
  • Don’t crop the image and fill inside the given dimensions.

    For 400x400, the shorter image dimension will be 400px, the other might be longer.

    - - note: Works as `UIViewContentModeScaleAspectFill` without clipping.
    

    Declaration

    Objective-C

    TKMediumContentModeNoCropFill = 2

    Swift

    case noCropFill = 2