Skip to content

Instantly share code, notes, and snippets.

@wendyliga
Created September 24, 2019 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wendyliga/33e0a6ce5054b3390c560497e59150f3 to your computer and use it in GitHub Desktop.
Save wendyliga/33e0a6ce5054b3390c560497e59150f3 to your computer and use it in GitHub Desktop.
Texture ASBackgroundLayoutSpec Simple Tutorial
let backgroundNode = ASDisplayNodeWithBackgroundColor(UIColor.red)
let foregroundNode = ASDisplayNodeWithBackgroundColor(UIColor.blue)
return ASBackgroundLayoutSpec(child: foregroundNode, background: backgroundNode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment