ASOverlayLayoutSpec Class Reference

Inherits from ASLayoutSpec : NSObject
Declared in ASOverlayLayoutSpec.h

Overview

This layout spec lays out a single layoutElement child and then overlays a layoutElement object on top of it streched to its size

  overlay

Overlay layoutElement of this layout spec

@property (nullable, nonatomic, strong) id<ASLayoutElement> overlay

Declared In

ASOverlayLayoutSpec.h

+ overlayLayoutSpecWithChild:overlay:

Creates and returns an ASOverlayLayoutSpec object with a given child and an layoutElement that act as overlay.

+ (instancetype)overlayLayoutSpecWithChild:(id<ASLayoutElement>)child overlay:(nullable id<ASLayoutElement>)overlay

Parameters

child

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

overlay

A layoutElement object that is laid out over the child. If this is nil, the overlay is omitted.

Declared In

ASOverlayLayoutSpec.h