Created
September 24, 2019 09:30
-
-
Save wendyliga/be5c72a1818a2c7442798f6ec85722db to your computer and use it in GitHub Desktop.
Texture ASInsetLayoutSpec 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 mainStack = ASStackLayoutSpec(direction: .horizontal, | |
spacing: 6, justifyContent: .start, | |
alignItems: .center, | |
children: [self.titleNode, self.subtitleNode]) | |
let padding = ASInsetLayoutSpec(insets: UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 15), child: mainStack) | |
return padding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment