Skip to content

Instantly share code, notes, and snippets.

@barefeettom
Created July 5, 2021 22:47
Show Gist options
  • Save barefeettom/c86c155352856ef8eb94ef2075f60ff6 to your computer and use it in GitHub Desktop.
Save barefeettom/c86c155352856ef8eb94ef2075f60ff6 to your computer and use it in GitHub Desktop.
Part of the tutorial series "Build an app like Lego, Using SwiftUI". https://medium.com/p/184fda9d0c86/
extension ProductCell {
init(product: Product) {
self.init(
image: Image(product.imageName),
text: Text(product.name),
detailText: Text(product.description),
tertiaryText: Text(String(describing: product.price))
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment