CKCenterLayoutComponent Class Reference

Inherits from CKComponent : NSObject
Declared in CKCenterLayoutComponent.h

Overview

Lays out a single child component and position it so that it is centered into the layout bounds.

+ newWithCenteringOptions:sizingOptions:child:size:

see CKCenterLayoutComponentCenteringOptions.

+ (instancetype)newWithCenteringOptions:(CKCenterLayoutComponentCenteringOptions)centeringOptions sizingOptions:(CKCenterLayoutComponentSizingOptions)sizingOptions child:(CKComponent *)child size:(const CKComponentSize &)size

Parameters

child

The child to center.

size

The component size or {} for the default which is for the layout to take the maximum space available.

centeringOptions,

see CKCenterLayoutComponentCenteringOptions.

Declared In

CKCenterLayoutComponent.h