CKBackgroundLayoutComponent Class Reference

Inherits from CKLayoutComponent : CKComponent
Declared in CKBackgroundLayoutComponent.h

Overview

@uidocs https://fburl.com/CKBackgroundLayoutComponent:bf91

Lays out a single child component, then lays out a background component behind it stretched to its size.

+ newWithComponent:background:

A child that is laid out to determine the size of this component. If this is nil, then this method returns nil.

+ (instancetype)newWithComponent:(CKComponent *)component background:(CKComponent *)background

Parameters

component

A child that is laid out to determine the size of this component. If this is nil, then this method returns nil.

background

A child that is laid out behind it. May be nil, in which case the background is omitted.

Declared In

CKBackgroundLayoutComponent.h

+ newWithView:size:

A struct describing the view for this component. Pass {} to specify that no view should be created.

+ (instancetype)newWithView:(const CKComponentViewConfiguration &)view size:(const CKComponentSize &)size

Parameters

view

A struct describing the view for this component. Pass {} to specify that no view should be created.

size

A size constraint that should apply to this component. Pass {} to specify no size constraint.

@example A component that renders a red square: [CKComponent newWithView:{[UIView class], {{@selector(setBackgroundColor:), [UIColor redColor]}}} size:{100, 100}]

Declared In

CKComponent.h