Skip to content

Instantly share code, notes, and snippets.

@wendyliga
Created September 24, 2019 09:30
Show Gist options
  • Save wendyliga/be5c72a1818a2c7442798f6ec85722db to your computer and use it in GitHub Desktop.
Save wendyliga/be5c72a1818a2c7442798f6ec85722db to your computer and use it in GitHub Desktop.
Texture ASInsetLayoutSpec Simple Example
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