CKOverlayLayoutComponent Class Reference

Inherits from CKLayoutComponent : CKComponent
Declared in CKOverlayLayoutComponent.h

Overview

@uidocs https://fburl.com/CKOverlayLayoutComponent:4ad6

This component lays out a single component and then overlays a component on top of it streched to its size

+ 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