YMASizeConstraintType

Objective-C

enum YMASizeConstraintType : NSInteger {}

Swift

enum YMASizeConstraintType : Int

Object sizing constraint.

  1. YMASizeConstraintTypeFixed
  2. YMASizeConstraintTypeFixedBannerRatio
  3. YMASizeConstraintTypePreferredBannerRatio

YMASizeConstraintTypeFixed

Fixed width or height.

Declaration

Objective-C

YMASizeConstraintTypeFixed

Swift

case fixed = 0

YMASizeConstraintTypeFixedBannerRatio

The ratio of the size of something to the size of the entire contents. The actual size of the content is not considered.

Declaration

Objective-C

YMASizeConstraintTypeFixedBannerRatio

Swift

case fixedBannerRatio = 1

YMASizeConstraintTypePreferredBannerRatio

The ratio of the size of something to the size of the entire content, but no more than the actual size of the content.

Declaration

Objective-C

YMASizeConstraintTypePreferredBannerRatio

Swift

case preferredBannerRatio = 2