CKStaticLayoutComponent Class Reference

Inherits from CKComponent : NSObject
Declared in CKStaticLayoutComponent.h

Overview

If specified, the component’s size is restricted according to this size. Percentages are resolved relative to the static layout component.

The default is Auto in both dimensions, which sets the child’s min size to zero and max size to the maximum available space it can consume without overflowing the component’s bounds.

+ newWithView:size:children:

Passed to the super class initializer.

+ (instancetype)newWithView:(const CKComponentViewConfiguration &)view size:(const CKComponentSize &)size children:(CKContainerWrapper<std::vector<CKStaticLayoutComponentChild> > & &)children

Parameters

view

Passed to the super class initializer.

children

Children to be positioned at fixed positions.

Declared In

CKStaticLayoutComponent.h

+ newWithChildren:

Convenience that does not have a view or size.

+ (instancetype)newWithChildren:(CKContainerWrapper<std::vector<CKStaticLayoutComponentChild> > & &)children

Declared In

CKStaticLayoutComponent.h