Skip to content

Instantly share code, notes, and snippets.

@wendyliga
Created September 24, 2019 09:39
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/0e07aa38ba84f9fc8136ff082b8c9e00 to your computer and use it in GitHub Desktop.
Save wendyliga/0e07aa38ba84f9fc8136ff082b8c9e00 to your computer and use it in GitHub Desktop.
Texture ASAbsoluteLayoutSpec Example
node.style.layoutPosition = CGPoint(x: 0.0, y: maxConstrainedSize.height / 3.0)
node.style.preferredSize = CGSize(width: maxConstrainedSize.width / 2.0, height: maxConstrainedSize.height / 3.0)
return ASAbsoluteLayoutSpec(children: [node])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment