ASCenterLayoutSpecCenteringOptions Constants Reference

Declared in ASCenterLayoutSpec.h

ASCenterLayoutSpecCenteringOptions

How the child is centered within the spec.

Definition

typedef NS_OPTIONS(NSUInteger, ASCenterLayoutSpecCenteringOptions ) {
   ASCenterLayoutSpecCenteringNone = 0,
   ASCenterLayoutSpecCenteringX = 1 < < 0,
   ASCenterLayoutSpecCenteringY = 1 < < 1,
   ASCenterLayoutSpecCenteringXY = ASCenterLayoutSpecCenteringX | ASCenterLayoutSpecCenteringY,
};

Constants

ASCenterLayoutSpecCenteringNone

The child is positioned in {0,0} relatively to the layout bounds

Declared In ASCenterLayoutSpec.h.

ASCenterLayoutSpecCenteringX

The child is centered along the X axis

Declared In ASCenterLayoutSpec.h.

ASCenterLayoutSpecCenteringY

The child is centered along the Y axis

Declared In ASCenterLayoutSpec.h.

ASCenterLayoutSpecCenteringXY

Convenience option to center both along the X and Y axis

Declared In ASCenterLayoutSpec.h.

Declared In

ASCenterLayoutSpec.h