ASBackgroundLayoutSpec Class Reference

Inherits from ASLayoutSpec : NSObject
Declared in ASBackgroundLayoutSpec.h

Overview

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

+ backgroundLayoutSpecWithChild:background:

A child that is laid out to determine the size of this spec.

+ (instancetype)backgroundLayoutSpecWithChild:(id<ASLayoutable>)child background:(nullable id<ASLayoutable>)background

Parameters

child

A child that is laid out to determine the size of this spec.

background

A layoutable object that is laid out behind the child. If this is nil, the background is omitted.

Declared In

ASBackgroundLayoutSpec.h