Skip to content

Instantly share code, notes, and snippets.

@GeekTree0101
Created May 30, 2019 12:50
Show Gist options
  • Save GeekTree0101/93587a21a037baf34b358756cffa1f81 to your computer and use it in GitHub Desktop.
Save GeekTree0101/93587a21a037baf34b358756cffa1f81 to your computer and use it in GitHub Desktop.
Maginim
class Cell: ASCellNode {
let messageCountNode = ASButtonNode()
let likeCountNode = ASButtonNode()
func engageAreaLayoutSpec() -> ASLayoutSpec {
let stackLayout = ASStackLayoutSpec(children: [message....like])
return ASInsetLayoutSpec(insets: .init(top: 0, left: .inf, bottom: 0, right: 0, child: stackLayout)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment