Created
September 24, 2019 09:37
-
-
Save wendyliga/999e4f1bc1237c1166b416319391418a to your computer and use it in GitHub Desktop.
Texture ASRatioLayoutSpec Simple Example
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 subnode = ASDisplayNodeWithBackgroundColor(UIColor.green, CGSize(width: 100, height: 100.0)) | |
let ratioSpec = ASRatioLayoutSpec(ratio: 0.5, child: subnode) | |
return ratioSpec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment