Created
September 24, 2019 09:33
-
-
Save wendyliga/33e0a6ce5054b3390c560497e59150f3 to your computer and use it in GitHub Desktop.
Texture ASBackgroundLayoutSpec Simple Tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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