CreationKit Documentation

Class Scrim

public final class Scrim: NSObject, ComponentLayout  

Scrims are temporary treatments that can be applied to Material surfaces for the purpose of making content on a surface less prominent. They help direct user attention to other parts of the screen, away from the surface receiving a scrim.

These should be displayed behind any modals or dialogs.

Scrim Scrim ComponentLayout ComponentLayout Scrim->ComponentLayout NSObject NSObject Scrim->NSObject

Conforms To

ComponentLayout

A protocol to share components (view layouts) across different types.

NSObject

Methods

layout(on:​)

public func layout(on view: UIView)