CKCenterLayoutComponent Class Reference

Inherits from CKLayoutComponent : 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.

– initWithCenteringOptions:sizingOptions:child:swiftSize:

see CKCenterLayoutComponentCenteringOptions.

- (instancetype)initWithCenteringOptions:(CKCenterLayoutComponentCenteringOptions)centeringOptions sizingOptions:(CKCenterLayoutComponentSizingOptions)sizingOptions child:(CKComponent *)child swiftSize:(CKComponentSize_SwiftBridge *_Nullable)swiftSize

Parameters

centeringOptions

see CKCenterLayoutComponentCenteringOptions.

sizingOptions

see CKCenterLayoutComponentSizingOptions.

child

The child to center.

swiftSize

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

Declared In

CKCenterLayoutComponent.h

– initWithCenteringOptions:sizingOptions:child:size:

see CKCenterLayoutComponentCenteringOptions.

- (instancetype)initWithCenteringOptions:(CKCenterLayoutComponentCenteringOptions)centeringOptions sizingOptions:(CKCenterLayoutComponentSizingOptions)sizingOptions child:(CKComponent *_Nullable)child size:(const CKComponentSize &)size

Parameters

centeringOptions

see CKCenterLayoutComponentCenteringOptions.

sizingOptions

see CKCenterLayoutComponentSizingOptions.

child

The child to center.

size

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

Declared In

CKCenterLayoutComponent.h