Slide 55
Slide 55 text
let imageSpec = ASRatioLayoutSpec(ratio: 1, child: imageNode)
let body = ASStackLayoutSpec(
direction: .vertical,
spacing: 8,
justifyContent: .end,
alignItems: .start,
children: [
imageSpec,
titleNode,
detailNode
]
)
return
ASInsetLayoutSpec(
insets: .init(top: 8, left: 8, bottom: 8, right: 8),
child: body
)